Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-open NERDTree in "EVERY" tab

Tags:

vim

nerdtree

Is it possible to open NERDTree in every tab with pressing t or T in NERDTree, if yes, How?

like image 356
tech.kapil Avatar asked Dec 30 '09 10:12

tech.kapil


People also ask

How do I switch between NERDTree tabs?

Ctrl + → arrow will switch to tab that is on the right of current tab.

How do I invoke NERDTree?

If you want to use NERDTree, you can open NERDTree (type :NERDTree ), navigate to your file, and then press t with cursor on the file name. This will open specific file in new tab. Also, while in NERDTree , you can hit ? . That will show you it's internal help with list of available commands.

How do you switch windows in NERDTree?

(1) Thus, if your edit window is to the right of the NERDTree window, you would use: ctrl + W l to go to right window and ctrl + W h to go to left window. or ctrl + w twice to toggle between the two.


1 Answers

autocmd VimEnter * NERDTree autocmd BufEnter * NERDTreeMirror 

edit: The above command seems to open the new tab in NERDTree's buffer. Instead use this as mentioned by wejrowski in the comment below :

autocmd BufWinEnter * NERDTreeMirror 
like image 118
Dustin Avatar answered Sep 22 '22 04:09

Dustin