Auto reload vimrc on save
This commit is contained in:
parent
fc5db841e3
commit
ca73637add
1 changed files with 2 additions and 0 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue