Hi Everyone,

There is a problem with saving folds on all open windows of same buffer. While 
the folds are preserved on the destination window, the folds on all other open 
windows of same buffer are lost.

I've been using `xolox/vim-session` for very long and never had this problem. 
The problem started end of last week.

As this feature is important to me I started trying out various things I'll be 
describing below in brief. 

I disabled the above plugin and tried out `mhinz/vim-startify` plugin - but 
noted the same problem as in the previous plugin. 

Next I tried out `mksession` having `set sessionoptions+=folds` in `vimrc` - 
again same problem as before.

Finally, i setup in `vimrc`, set viewoptions+=folds, saved the open windows 
manually with `:mkview myName`, closed windows, reopened windows with 
`mksession` (same effect with `mhinz/vim-startify`) and executed `:loadview 
myName` on windows with no folds and the folds reloaded properly. 

I read that by placing in `vimrc` the following lines: 
`autocmd BufWinLeave *.* mkview` and 
`autocmd BufWinEnter *.* silent loadview` 

i could automate the process - but it did not!

My question is how I can automate the saving and reopening folds on all windows 
possibly on `mhinz/vim-startify` or otherwise on `mksession` or in any other 
way? 

I'll be grateful for any piece of hint, suggestions or perhaps complete 
solutions. 

Thanks.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to