Created
December 2, 2011 16:05
-
-
Save techpeace/1423770 to your computer and use it in GitHub Desktop.
Some vimrc snippets for dealing with vimrc
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
if has("autocmd") | |
" Source the vimrc file after saving it | |
autocmd BufWritePost */.vimrc.local source $MYVIMRC.local | |
autocmd BufWritePost */.gvimrc.local source $MYGVIMRC.local | |
endif | |
" Open the vimrc.local file | |
nmap <leader>$ :tabedit $MYVIMRC.local<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment