xolox / vim-session

Extended session management for Vim (:mksession on steroids)
http://peterodding.com/code/vim/session/
961 stars 80 forks source link

Folds are saved only for one window but not for all open windows of same buffer #151

Open Annis-Monadjem opened 8 years ago

Annis-Monadjem commented 8 years ago

Hello Peter!

Vim-session is really great! I love it and thanks for such a wonderful product in Vim toolbox.

I'm having a problem however with saving folds for all open windows. Vim-session properly saves folds for only one open window. When i have many open windows, in particular, when I am returning to multiple saved windows of same buffer and reopen using vim-session all except one window will lose manual folds.

Is there anything I'm doing wrong? And how is it possible to retain folds on all windows of same buffer?

Please notice that this feature was working well still last week, but not anymore. I'm not sure what happened; but my guess is that it has something to do with vim-session most recent updates ??

Below is my setup in vimrc (the piece for vim-session):

let g:session_directory='~/.vim/.sessions'

" Save folds in sessions and views:
sessionoptions=curdir,folds,help,options,tabpages,winsize

" Don't save hidden and unloaded buffers in sessions:
set sessionoptions-=buffers
set sessionoptions-=blank

Pleas, let me know please what i can do to optimize my working in vim-session and to remove this bug. Thanks.