Skip to content

Instantly share code, notes, and snippets.

@techpeace
Created December 2, 2011 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techpeace/1423770 to your computer and use it in GitHub Desktop.
Save techpeace/1423770 to your computer and use it in GitHub Desktop.
Some vimrc snippets for dealing with vimrc
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