Improve config reloading

master
Hektor Misplon 2023-04-07 22:51:31 +02:00
parent 934420d20a
commit 935c9f17cd
1 changed files with 6 additions and 2 deletions

8
.vimrc
View File

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