Code folding is not saved in my vimrc
Posted
by janoChen
on Stack Overflow
See other posts from Stack Overflow
or by janoChen
Published on 2010-01-26T20:28:01Z
Indexed on
2010/05/26
12:31 UTC
Read the original article
Hit count: 469
I added the following code to my .vimrc:
" save and restore folds when a file is closed and re-opened
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
HTML and CSS documents save and restore their folds but code folding is not being saved in my .vimrc
Any suggestions?
EDIT:
The following code solves the problem:
au BufWinLeave ?* mkview
au BufWinEnter ?* silent loadview
but if I write it, the MRU files disappear from my list (and I have to open MRU twice in order to see my list of recent files why?)
© Stack Overflow or respective owner