From d0870247a83840976f623c3b8d47c29e60977ebb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 11 Jun 2019 15:26:52 +1200 Subject: Include faked display of :ReloadVimrc command --- vim/vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3