vimrc: add augroup for view saving/loading

This commit is contained in:
surtur 2022-10-06 15:33:14 +02:00
parent 6f8bd050b8
commit c783fc8438
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -595,9 +595,20 @@ augroup vimrc
au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
augroup END
""" autosave and load views
au BufWinLeave ?* mkview
au BufWinEnter ?* silent loadview
"" autosave and load views
augroup save_load_views
autocmd!
" au BufWinLeave ?* mkview
" au BufWinLeave *.* silent mkview
" au BufWinLeave ?* mkview
" au VimLeavePre ?* mkview
" au BufWinEnter ?* silent loadview
" au BufReadPost ?* loadview
" au BufWinEnter,BufRead *.* loadview
" au BufWinEnter ?* loadview
au BufLeave *.* mkview
au BufWinEnter *.* loadview
augroup END
au FileType xml setlocal shiftwidth=4 tabstop=4
au FileType html setlocal shiftwidth=4 tabstop=4