To install on Mac or Windows, from a bash prompt (eg GitBash on Windows)
curl -OL https://gist.github.com/sarah-j-smith/26135fd0ecbdec02c5486dc168002cdf/raw/3df8744823fe531582c72b87a1bc8861c2adaa9c/simple-vimrc
mv simple-vimrc ~/.vimrc| " Use spaces instead of tabs | |
| set expandtab | |
| " Be smart when using tabkey | |
| set smarttab | |
| " 1 tab == 4 spaces | |
| set shiftwidth=4 | |
| set tabstop=4 | |
| " Enable filetype plugins | |
| filetype plugin on | |
| filetype indent on | |
| set ai "Auto indent | |
| set si "Smart indent | |
| set wrap "Wrap lines | |
| " Set to auto read when a file is changed from the outside | |
| set autoread | |
| " Configure backspace so it acts as it should act | |
| set backspace=eol,start,indent | |
| " Show matching brackets when text indicator is over them | |
| set showmatch | |
| " How many tenths of a second to blink when matching brackets | |
| set mat=2 | |
| " No annoying sound on errors | |
| set noerrorbells | |
| set novisualbell | |
| set t_vb= | |
| set tm=500 | |
| " Enable syntax highlighting | |
| syntax enable | |
| " Set utf8 as standard encoding and en_US as the standard language | |
| set encoding=utf8 | |
| " Use Unix as the standard file type | |
| set ffs=unix,dos,mac | |
| " Turn backup off, since most stuff is in SVN, git et.c anyway... | |
| set nobackup | |
| set nowb | |
| set noswapfile | |
| " Return to last edit position when opening files (You want this!) | |
| autocmd BufReadPost * | |
| \ if line("'\"") > 0 && line("'\"") <= line("$") | | |
| \ exe "normal! g`\"" | | |
| \ endif | |
| " Remember info about open buffers on close | |
| set viminfo^=% | |
| filetype plugin indent on | |
| syntax on |
To install on Mac or Windows, from a bash prompt (eg GitBash on Windows)
curl -OL https://gist.github.com/sarah-j-smith/26135fd0ecbdec02c5486dc168002cdf/raw/3df8744823fe531582c72b87a1bc8861c2adaa9c/simple-vimrc
mv simple-vimrc ~/.vimrcsimple and effective, thanks for the gist
Thanks. Used this because macvim doesn't come with a default .vimrc (unlike gvim on Windows)