diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 15:26:52 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 15:28:51 +1200 |
commit | d0870247a83840976f623c3b8d47c29e60977ebb (patch) | |
tree | 3e63e751666282c569d8b03f486ad25cc66cec7f | |
parent | Clean up ad-hoc plugins (diff) | |
download | dotfiles-d0870247a83840976f623c3b8d47c29e60977ebb.tar.gz dotfiles-d0870247a83840976f623c3b8d47c29e60977ebb.zip |
Include faked display of :ReloadVimrc command
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -161,8 +161,13 @@ command! -bar ReloadFileType " from running the :source command with a :noautocmd wrapper. This is " a defensive measure to avoid infinite recursion. " +" We redraw the screen and emit a faked display of the command, as well. +" command! -bar ReloadVimrc - \ noautocmd source $MYVIMRC | ReloadFileType + \ noautocmd source $MYVIMRC + \|ReloadFileType + \|redraw! + \|echomsg ':ReloadVimrc' " Reset and define a group of automatic command hooks specific to matters " related to reloading the vimrc itself. |