如预期的那样,使Nerdtree起作用'
我希望能够o
或双击nerdtree中的文件,并在右侧的拆分中打开,并让nerdtree保持打开状态。我还没有发现魔术灰尘撒在我的.vimrc上以实现这一目标,有人可以帮忙吗?
我想像任何GUI文本编辑器一样行事,探险家坚持下去,文件在“主窗格”中打开和关闭。
感谢您的任何见解!
I want to be able to o
or double click on a file in NERDTree, and have it open in a split to the right, and have NERDTree stay open. I haven't found the magic dust to sprinkle on my .vimrc to make this happen yet, can anyone help?
I'd want to to behave like any GUI text editor, where the explorer persists and the files open and close in the 'main pane'.
Thanks for any insight!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的
.vimrc
中尝试一下:我发现以下映射很有用:
因此
\d
打开一个在选择文件时关闭的 NERDTree,而\D
打开一个持久/固定的 NERDTree。Try this in your
.vimrc
:I find the following mappings useful:
So
\d
opens a NERDTree that closes on file selection, while\D
opens a persistent/pinned NERDTree.通过将以下几行放入 .vimrc 配置中,当 vim 启动打开目录
vim ReactProjectFolder
时,将自动打开 NERDTree,并防止 NERDTree 在首次选择从 书呆子树常见问题解答
By putting the following lines in your .vimrc config will open NERDTree automatically when vim starts up on opening a directory
vim ReactProjectFolder
and prevent NERDTree from hiding when first selecting a fileTaken from the nerdtree f.a.q