nerdtree 和 mvim,如何让它打开分屏
我使用 MacVim 和 Janus 发行版已经有一段时间了,并且已经非常习惯它的工作方式。最近,当我执行“mvim”时。从终端窗口中的目录中,我得到一个仅打开 NERDTree 的 MacVim 窗口,没有垂直分割。如果我在 NERDTree 中选择一个文件,它会用该文件内容替换 NERDTree 窗口,而不是让 NERDTree 在左窗格中保持打开状态。
有谁知道如何恢复默认配置?
I've been using MacVim and the Janus distribution for a while and have become very used to how it works. Recently, when I execute "mvim ." from a directory in a Terminal window, I get a MacVim window with only NERDTree open, there's not a vertical split. If I select a file in NERDTree, it replaces the NERDTree window with that file contents instead of leaving NERDTree open in a left pane.
Does anyone know how to get this back to the default configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用此命令用 Vim 编辑器打开 NerdTree,它可以工作
I use this command to open NerdTree with Vim editor and it works
您可以将其添加到您的 .vimrc
<代码>
autocmd StdinReadPre * 让 s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists(“s:std_in”) |书呆子树 |恩迪夫
当您运行
mvim
(不是mvim
)时,Nerdtree 将以垂直分割方式打开。您可以在此处找到对 nerdtree 配置的一些其他改进:https://medium.com/@victormours/a-better-nerdtree-setup-3d3921abc0b9#.nlz8ycchu
You can add this to your .vimrc
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists(“s:std_in”) | NERDTree | endif
And Nerdtree will be open in a vertical split when you run
mvim
(notmvim .
)You can find some other improvements to your nerdtree config here: https://medium.com/@victormours/a-better-nerdtree-setup-3d3921abc0b9#.nlz8ycchu