Auto reload vimrc on save

This commit is contained in:
Fernando Schauenburg 2020-01-31 12:03:25 +01:00
parent fc5db841e3
commit ca73637add

View file

@ -228,6 +228,8 @@ augroup vimrc " {{{
autocmd FileType python setlocal foldmethod=indent foldignore= autocmd FileType python setlocal foldmethod=indent foldignore=
autocmd FileType markdown,text,gitcommit setlocal formatoptions+=t spell autocmd FileType markdown,text,gitcommit setlocal formatoptions+=t spell
autocmd FileType gitcommit setlocal textwidth=72 autocmd FileType gitcommit setlocal textwidth=72
autocmd BufWritePost vimrc source %
augroup END " }}} augroup END " }}}
if filereadable(expand("$XDG_CONFIG_HOME/vimrc.local")) if filereadable(expand("$XDG_CONFIG_HOME/vimrc.local"))