aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:08:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:08:28 +1200
commita523c9e85bba4cb6fb7d58c57c74d98b34d806c5 (patch)
treec6b596c6e1b1bf636098cce10033b362d09148b6
parentaebe4e709584692a729ad3e3ee8fc07304f28507 (diff)
downloaddotfiles-a523c9e85bba4cb6fb7d58c57c74d98b34d806c5.tar.gz
dotfiles-a523c9e85bba4cb6fb7d58c57c74d98b34d806c5.zip
Add .vimrc reload flag and message
-rw-r--r--vim/vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b0328af7..e93bcba1 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -294,3 +294,11 @@ nnoremap <Bslash><Insert> :<C-U>enew<CR>
" Source any .vim files from ~/.vim/config
runtime! config/*.vim
+
+" Flag that we loaded, tell the user if we reload
+if 1
+ if exists('g:loaded_vimrc')
+ echomsg 'Reloaded vimrc: '.$MYVIMRC
+ endif
+ let g:loaded_vimrc = 1
+endif