autosave folds when saving instead of bufwinleave

This commit is contained in:
ManjaroOne666 2018-02-01 18:03:07 +00:00
parent 4effb9c01b
commit 1e05b0f5b4
1 changed files with 1 additions and 1 deletions

2
vimrc
View File

@ -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