Last active
August 29, 2015 14:17
-
-
Save memoryleak/3b7a4c728ab68fb95635 to your computer and use it in GitHub Desktop.
Vim configuration file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get the aliases and functions | |
| if [ -f ~/.bashrc ]; then | |
| . ~/.bashrc | |
| fi | |
| alias egrep='egrep --color=auto' | |
| alias fgrep='fgrep --color=auto' | |
| alias grep='grep --color=auto' | |
| alias ll='ls -laF --color=auto' | |
| alias ls='ls -F --color=auto' | |
| alias psg='ps aux | grep -v grep | grep -i -e VSZ -e' | |
| alias wget='wget -c --trust-server-names' | |
| backup() { cp $@ $@.backup-`date +%y%m%d`; } | |
| EDITOR=vim | |
| export EDITOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "" Encoding | |
| set encoding=utf-8 | |
| set fileencoding=utf-8 | |
| set fileencodings=utf-8 | |
| "" Fix backspace indent | |
| set backspace=indent,eol,start | |
| "" Tabs. May be overriten by autocmd rules | |
| set tabstop=4 | |
| set softtabstop=0 | |
| set shiftwidth=4 | |
| set expandtab | |
| "" Enable hidden buffers | |
| set hidden | |
| "" Searching | |
| set hlsearch | |
| set incsearch | |
| set ignorecase | |
| set smartcase | |
| "" Encoding | |
| set bomb | |
| set binary | |
| set ttyfast | |
| "" Directories for swp files | |
| "set nobackup | |
| "set noswapfile | |
| set fileformats=unix,dos,mac | |
| set showcmd | |
| set shell=/bin/bash | |
| "" Visual | |
| syntax on | |
| set ruler | |
| set number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment