开发者

Two basic questions with NERDTree — switching windows and finding files

开发者 https://www.devze.com 2023-01-30 09:54 出处:网络
I am using vim with NERDTree to develop, but not good at it.I have two questions with NERDTree: How to move cursor between 开发者_如何学JAVAnav window and edit window without mouse?

I am using vim with NERDTree to develop, but not good at it. I have two questions with NERDTree:

  1. How to move cursor between 开发者_如何学JAVAnav window and edit window without mouse?
  2. How to go to one special file node (named xxx) in nav window directly by keyboard?


The NERDTree plugin creates a Vim buffer, and displays it in a Vim window. So you can use any of your normal Vim commands.

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

(2) To go to a special file, simply search for it while in the NERDTree window:

 /xxx

Hit ENTER to end the search at the line, and then ENTER again to open the file in the previous window and go to it.

0

精彩评论

暂无评论...
验证码 换一张
取 消