Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 NERDTree 的 vim 进行开发,但并不擅长。我对 NERDTree 有两个问题:
NERDTree 插件创建一个 Vim 缓冲区,并将其显示在 Vim 窗口中。所以你可以使用任何普通的 Vim 命令。
(1) 因此,如果您的编辑窗口位于 NERDTree 窗口的右侧,您将使用:ctrl + Wl转到右侧窗口并ctrl + Wh转到左侧窗口。或ctrl + w两次在两者之间切换。
(2) 要转到一个特殊文件,只需在 NERDTree 窗口中搜索它:
/xxx
点击ENTER以结束该行的搜索,然后ENTER再次在前一个窗口中打开文件并转到它。