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
|
au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
""" autosave and load views
|
"" autosave and load views
|
||||||
au BufWinLeave ?* mkview
|
augroup save_load_views
|
||||||
au BufWinEnter ?* silent loadview
|
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 xml setlocal shiftwidth=4 tabstop=4
|
||||||
au FileType html setlocal shiftwidth=4 tabstop=4
|
au FileType html setlocal shiftwidth=4 tabstop=4
|
||||||
|
Loading…
Reference in New Issue
Block a user