aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 15:26:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 15:28:51 +1200
commitd0870247a83840976f623c3b8d47c29e60977ebb (patch)
tree3e63e751666282c569d8b03f486ad25cc66cec7f
parentClean up ad-hoc plugins (diff)
downloaddotfiles-d0870247a83840976f623c3b8d47c29e60977ebb.tar.gz
dotfiles-d0870247a83840976f623c3b8d47c29e60977ebb.zip
Include faked display of :ReloadVimrc command
-rw-r--r--vim/vimrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1ba3805e..f2f77400 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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.