4

Trying to put together a Vim setup using NERDTree, session and tabbar.

Unfortunately tabbar (which is based on minibufexpl) does not go well with the session plugin.

Is there a workaround/alternative for this? Or do I have to give up one of these plugins.

hjpotter92
  • 78,589
  • 36
  • 144
  • 183
mihai
  • 37,072
  • 9
  • 60
  • 86

1 Answers1

2

I believe, tabbar/minibufexpl does not have session support at all, no matter whether you use “session” plugin or :mksession directly. To make tabbar work with sessions you must, at first, setup a BufReadCmd that will invoke tabbar on already opened buffer that has a name -TabBar-. Maybe it is better to also rename -TabBar- to //TabBar// because with autocmd invoked for -TabBar- you lose the ability to open/create file with name -TabBar- completely, but with //TabBar// nothing is lost. Note though, that BufReadCmd may be not enough.

ZyX
  • 52,536
  • 7
  • 114
  • 135