autosave folds when saving instead of bufwinleave
This commit is contained in:
parent
4effb9c01b
commit
1e05b0f5b4
2
vimrc
2
vimrc
|
@ -288,7 +288,7 @@ set showmode
|
||||||
" persistent folds
|
" persistent folds
|
||||||
augroup AutoSaveFolds
|
augroup AutoSaveFolds
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinLeave *.* mkview
|
autocmd BufWritePost *.* mkview
|
||||||
autocmd BufWinEnter *.* silent loadview
|
autocmd BufWinEnter *.* silent loadview
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue