Improve config reloading
parent
934420d20a
commit
935c9f17cd
8
.vimrc
8
.vimrc
|
@ -494,8 +494,6 @@ endfu
|
|||
|
||||
" VIM config hot reload
|
||||
|
||||
au! bufwritepost .vimrc source $HOME/.vimrc
|
||||
|
||||
" TODO: separate to filetype specific files
|
||||
|
||||
" JS
|
||||
|
@ -544,3 +542,9 @@ augroup HiglightTODO
|
|||
autocmd WinEnter,VimEnter * :silent! call matchadd('Todo', 'FIXME', -1)
|
||||
autocmd WinEnter,VimEnter * :silent! call matchadd('Todo', 'QUESTION', -1)
|
||||
augroup END
|
||||
|
||||
augroup Vim
|
||||
au!
|
||||
" Reload vim config when ~/.vimrc is changed
|
||||
au BufWritePost $HOME/.vimrc so $MYVIMRC | redraw | echo "Reloaded vimrc"
|
||||
augroup END
|
||||
|
|
Loading…
Reference in New Issue