You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
Hello,
When I have NERDTreeTabs open and I save a session (through :mksession or :SessionSave from vim-session) and then I try to restore it, strange things happen.
Steps to reproduce:
Open some files in vim:
vim -p file.txt nohup.out .xsession-errors
Make sure NERDTreeTabs is open.
Execute :mksession /tmp/ses.vim
Close vim.
Open vim again.
:source /tmp/ses.vim
I get the following errors (I have translated the error messages manually):
"file.txt" 14L, 625C
"file.txt" 14L, 625C
Detected an error while processing /tmp/ses.vim:
line 34:
E95: Buffer with this name exists
"nohup.out" 1L, 36C
".xsession-errors" 8244L, 683168C
".xsession-errors" 8244 lines --0%-- (2 of 3)
line 58:
E95: Buffer with this name exists
".xsession-errors" 8248L, 683644C
"nohup.out" 1L, 36C
"nohup.out" 1 line --100%-- (3 of 3)
line 82:
E95: Buffer with this name exists
and I have an additional buffer on every tab.
The text was updated successfully, but these errors were encountered:
This is probably caused by the fact that all NERDTree windows have the same name "NERD_tree_1". That name apperas in session.vim multiple times.
NERDTree uses different buffer names for every instance: "NERD_tree_1", "NERD_tree_2", etc. (this is done in lib/nerdtree/creator.vim - s:Creator._nextBufferName() ). Nerdtree-tabs breaks it.
Hello,
When I have NERDTreeTabs open and I save a session (through :mksession or :SessionSave from vim-session) and then I try to restore it, strange things happen.
Steps to reproduce:
Open some files in vim:
vim -p file.txt nohup.out .xsession-errors
Make sure NERDTreeTabs is open.
Execute :mksession /tmp/ses.vim
Close vim.
Open vim again.
:source /tmp/ses.vim
I get the following errors (I have translated the error messages manually):
and I have an additional buffer on every tab.
The text was updated successfully, but these errors were encountered: