如何在 VIM/NERDTree 中设置仅两个 vsplitting 窗口?
左侧窗口将是 NERDTree 树状菜单,如果我在任何文件名上键入“s”,它将在右侧窗口中以 vsplited 形式打开。
现在,如果我在左侧树状菜单中的任何文件上再次按“s”,该文件将在右侧窗口中作为分割窗口打开,但前一个窗口将被替换或前一个窗口将关闭。
我该怎么做?
The left side window will be the NERDTree tree-like menu and if I type "s" on any filename it will be opened at the right side window as vsplited.
Now if I press "s" again on any file from the left side tree-like menu that file will be opened at the right side window as splited window but the previous window will be replaced or the previous window will be closed.
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您位于要替换的窗口(右侧)时,您可以按 Ctrl+w 两次以移至 NERDTree。如果您随后按 o,则 NERDtree 将在之前使用的窗口(最后一个窗口)中打开该文件。
When you are on the window you wish to repace (the right one) you can press Ctrl+w twice to move to NERDTree. If you then press o then NERDtree will open the file into the previously used window (the last one).