Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question
    
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
up vote 0 down vote accepted

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .