Save and restore folds in vim
This commit is contained in:
parent
99b6f21e12
commit
de7f71dde0
7
vimrc
7
vimrc
|
@ -211,6 +211,13 @@ if &term =~ '256color'
|
||||||
set t_ut=
|
set t_ut=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Save and restore folds
|
||||||
|
augroup remember_folds
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWinLeave *.* silent! mkview
|
||||||
|
autocmd BufWinEnter *.* silent! loadview
|
||||||
|
augroup END
|
||||||
|
|
||||||
" Disable arrow keys
|
" Disable arrow keys
|
||||||
map <up> <nop>
|
map <up> <nop>
|
||||||
map <down> <nop>
|
map <down> <nop>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user