shortcuts for editing/reloading vimrc

170 views
Skip to first unread message

David Golden

unread,
Jun 5, 2009, 12:00:48 PM6/5/09
to vim-...@googlegroups.com
As a general tip, I've put the following shortcuts into my vimrc for
easy editing -- ",v" to edit it and ",V" to reload it:

map ,v :sp $VIMRC<CR><C-W>_
map <silent> ,V :source $VIMRC<CR>:filetype detect<CR>:exe ":echo
'vimrc reloaded'"<CR>

Like Andy A, I also keep my vimrc and vimfiles in source control and
sync them across machines. I symlink ~/.vimrc to a vimrc in the .vim
directory.

-- David

Reply all
Reply to author
Forward
0 new messages