dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

New session creates X empty buffers (where X is number of buffers from previous session) #25

Closed mikeys closed 8 years ago

mikeys commented 8 years ago
  1. Go to a project directory where you previously didn't have any vim session.
  2. Type vim to start vim and create a session for this project
  3. Quit vim (:qall), the session gets saved.
  4. Go to a different directory where you previously didn't have any vim session
  5. type vim to start vim and create a session for this project

As can be seen in the GIF below, after step 5 - three empty buffers are visible at the top until I open up a file (using Ctrl-P plugin in this case).

Can this be avoided somehow? vim-prosession

dhruvasagar commented 8 years ago

I am actually not able to reproduce this issue at all. Kindly do the following additionally to what you are doing already and share the gifcast. (btw what did you use to create this gif ?)

mikeys commented 8 years ago

@dhruvasagar never mind, you can close this. I was having viminfo set: 😃 set viminfo^=%

Perhaps you'd want to add this to a FAQ section? (definitely not a must though)

dhruvasagar commented 8 years ago

Cool, i'll have a look at what side-effects may happen as a result of using viminfo, i'll add that to the README. Thanks.