Auto reload .vimrc after write
Add the following to your ${HOME}/.vimrc file
" Source the vimrc file after saving it
if has("autocmd")
autocmd bufwritepost .vimrc source $MYVIMRC
endif
If you edit your .vimrc it will automatically be reloaded once you write it. This makes changes to .vimrc dynamic and you do not need to restart vim.
Written by LokiAstari
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#