diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 16:08:28 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 16:08:28 +1200 |
commit | a523c9e85bba4cb6fb7d58c57c74d98b34d806c5 (patch) | |
tree | c6b596c6e1b1bf636098cce10033b362d09148b6 | |
parent | Add \R for filetype reloading (diff) | |
download | dotfiles-a523c9e85bba4cb6fb7d58c57c74d98b34d806c5.tar.gz dotfiles-a523c9e85bba4cb6fb7d58c57c74d98b34d806c5.zip |
Add .vimrc reload flag and message
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |