Save and restore folds in vim

This commit is contained in:
Michael Campagnaro 2017-06-09 19:31:25 -04:00
parent 99b6f21e12
commit de7f71dde0

7
vimrc
View File

@ -211,6 +211,13 @@ if &term =~ '256color'
set t_ut=
endif
" Save and restore folds
augroup remember_folds
autocmd!
autocmd BufWinLeave *.* silent! mkview
autocmd BufWinEnter *.* silent! loadview
augroup END
" Disable arrow keys
map <up> <nop>
map <down> <nop>