Automatic reloading of .vimrc on each save

2 Points

Janusz Kowalczyk Janusz Kowalczyk

9 years ago

Will reload .vimrc each time you save it.

autocmd! bufwritepost .vimrc source %

Ory Band

Ory Band 9 years ago

This should be wrapped in an augroup to avoid recursive resourcing:

augroup Buf-Write-Post autocmd! " real aucmds go here augroup END