vimrc: add augroup for view saving/loading
This commit is contained in:
parent
6f8bd050b8
commit
c783fc8438
17
.vim/vimrc
17
.vim/vimrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user