xolox / vim-session

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

Lock file with NERDTree #158

Open dylan-chong opened 7 years ago

dylan-chong commented 7 years ago

If you have two buffers open (nerdtree and some other buffer) and quit from the 'other' buffer with :q, then the lock file is not deleted, but if you quit with :qa then the lock file is deleted.

JESii commented 7 years ago

What's happening, I think, is that since vim isn't completely closed, then you are still on that Session. :qa shuts everything down -- including the NERDTree window -- and closes vim, including implicitly closing the session. That's why it works.

When I want to close a session, I either do :qa or :CloseSession :OpenSession <new-session>

xahon commented 7 years ago

Cannot open session because of it. I have to make OpenSession! always

ITler commented 7 years ago

I've tried to workaround this playing around with variables provided by this plugin. However my attempts were not successful. Do you see a chance to enhance the plugin to resolve this?