Created
October 29, 2014 17:36
-
-
Save Supernats/369469b04c180803bb2f to your computer and use it in GitHub Desktop.
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
| set backupdir=~/vimtemp | |
| set directory=~/vimtemp | |
| execute pathogen#infect() | |
| set runtimepath^=~/.vim/bundle/ctrlp.vim | |
| highlight Error ctermbg=red ctermfg=white guibg=#592929 | |
| match Error /\%81v.\+/ | |
| au VimEnter * RainbowParenthesesToggle | |
| au Syntax * RainbowParenthesesLoadRound | |
| au Syntax * RainbowParenthesesLoadSquare | |
| au Syntax * RainbowParenthesesLoadBraces | |
| syntax enable | |
| let g:clang_library_path = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib' | |
| if executable('ack') | |
| " Use Ag over Grep | |
| set grepprg=ack\ --nogroup\ --nocolor | |
| endif | |
| set clipboard=unnamed | |
| set rnu | |
| set nu | |
| set smartindent | |
| syntax on | |
| set ai | |
| set aw | |
| set ts=2 | |
| set sw=2 | |
| set list | |
| set expandtab | |
| set softtabstop=2 | |
| filetype indent plugin on | |
| " colors | |
| set t_Co=256 | |
| hi Folded ctermbg=black | |
| hi Folded ctermbg=090 | |
| hi LineNr ctermfg=172 | |
| " autosessions (courtesy of gkchestertron) | |
| command -nargs=1 MS :mksession ~/vimsessions/<args>.vim | |
| command -nargs=1 SS :mksession! ~/vimsessions/<args>.vim | |
| command -nargs=1 LS :source ~/vimsessions/<args>.vim | |
| command LL :source ~/vimsessions/last.vim | |
| autocmd VimLeavePre * :mksession! ~/vimsessions/last.vim | |
| " mappings | |
| " make Y work like the other capital verbs | |
| nmap Y y$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment