Closed jondkinney closed 5 years ago
I'm not sure. After I released, I discovered session.vim, which seems to go to a great deal of trouble to work around janky plugins. I'm not sure I want to attempt this. My general feeling is that buffer names should specify a resource (nerdtree:///home/me
) rather than just a meaningless label (NERD_Tree_1
). With the former, it just works. With the latter, best I can do is special case it.
I'm biased, though, as this sums up my feelings on nerdtree quite nicely.
Ok, no worries. The easy workaround is to just close the empty buffer and open NERD Tree back up if I need it. I don't use NERD Tree all that much, I favor ctrlp, but I find NERD Tree nice for familiarizing myself with a new codebase or gem.
@jondkinney is this a symptom of what you were observing?
"NERD_tree_1" [Not edited] --No lines in buffer--
Error detected while processing SessionLoadPost Auto commands for "*":
E117: Unknown function: tagbar#RestoreSession
E117: Unknown function: tagbar#RestoreSession
An acceptable solution for me would just be to ignore nerd tree when saving. Is this possible?
@Iambecomeroot set sessionoptions-=blank
appears to do exactly that, and it's now the default in obsession.vim.
This isn't a deal breaker, but if I have NERD Tree open in the main window or another vim tab and then quit out of vim and re-open that session, the split that had NERD Tree in it is just blank. It's easy enough to just close that split and then re-open NERD Tree, but I just thought I'd see if you have any idea if it's possible to actually restore it fully?
If there isn't a way to restore NERD Tree properly, is there a way to close out all the NERD Tree splits automatically when quitting vim perhaps? Maybe that isn't good either, just throwing ideas out.
Thanks much