In a recent post on the Perl QA mailing list, David Golden showed off two lovely Vim bindings to load Vim’s configuration file in a buffer for editing, then to reload that file in the current Vim process.

",v brings up my .vimrc
",V reloads it -- making all changes active (have to save first)

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

I had to modify this to replace $VIMRC with the path to my configuration file (~/.vimrc). It worked beautifully.

It’s much easier to experiment with writing new bindings in Vim itself, rather than through the ex interface. It’s also immeasurably faster to be able to reload the configuration file itself, rather than quitting and restarting the program.

This tip has already made me much more productive. Thanks, David!