1

When I save and load a session (with split, vsplit and a different file) in Vim (or Gvim) with :mks and :source, or with a session manager plugin I can't load what I saved.

For example :

======= What I save ======

:mks ~/.vim/sessions/Session.vim

 —————————————————————————
|  1   |       2          |
|      |——————————————————|
|——————|                  |
|  3   |          4       |
|______|__________________|

4 differents file, 1 vsplit and 2 split ( different height ).

======= What I get ======

:source ~/.vim/sessions/Session.vim

 —————————————————————————
|  1 |       4     |  1   |
|————|             |      |
|    |_____________|______|
|  2 |       3     |  3   |
|____|_____________|______|

Two files ( 1 and 3 ) opened twice. Order change. Split and vsplit size and position are not the same.

Does anyone know why this happens? It's very painfull to manage sessions with things like that.

-> vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 28 2011 16:03:36)

( Full 'vim --version' : http://pastebin.com/cCs19jwP)

  • Does it still happen when you do "vim -N -u NONE" and save/restore a session? – Heptite Aug 16 '11 at 17:52
  • Seems to work … – dgellow Aug 17 '11 at 14:28
  • I will have to find which plugin dont work well … Painful work :( – dgellow Aug 17 '11 at 14:45
0

Okay, I found the evil plugin. It's MiniBufferExplorer.

I tested without all plugins except for MiniBufferExplorer and I get the issue. I'm still not sure why though.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.