I set Tagbar automatically open when a new file in vim, it is ok and fine. but if open a new file as a tab in opened vim, Tagbar would not be opened, how to tell vim to keep open Tagbar open with a new tab?
1 Answer
For me such line in .vimrc
does the job:
autocmd FileType python,c,cpp TagbarOpen
-
-
1Try add this line: "autocmd BufNew,BufRead,BufEnter * TagbarOpen". But do you really need Tagbar on text files for example?– DmitryMay 19, 2020 at 17:37