更改 NERDtree 中的驱动器号
我开始在 Windows 平台上使用 NERDtree 插件。我似乎找不到更改驱动器号的方法。在目录树上一直向上查找并不会找到驱动器号。有什么想法吗? (是的,我知道,这将是一个简单的答案)
I started using NERDtree plugin on a a windows platform. I can't seem to find a way to change the drive letter. Going up all the way on the directory tree doesn't lead to the drive letter. Any ideas?
(Yes, I know, it's going to be a simple answer)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
例如,如果您想转到 Z 驱动器,请按以下方式启动:
If you want to go to your Z drive, for example, start it as:
如果你
在 NERDTree 窗口中使用:你会看到它有效。但现在如果你用 NERDTree 打开(并编辑)一个文件,你会发现它无法保存,因为当前工作目录没有改变';它仍然在旧目录中!
因此,如果您想更改 NERDTree 中的驱动器,我建议您执行以下 2 个步骤:
其中,drive 是您要更改为的驱动器号,并且 .表示将NERDTree目录更改为当前工作目录。
现在您可以使用 NERDTree 打开(或编辑)新目录中的文件。
If you use:
in the NERDTree window you will see it works. But now if you open(and edit) a file with NERDTree you will find it can not be saved, because the current working directory has not changed'; it is still in the old directory!
So if you want change the drive in NERDTree I advise you to perform the following 2 steps:
where drive is the drive letter you want to change to, and . means change the NERDTree directory to the current working directory.
Now you can use NERDTree opening (or editing)the file in new directory now.
没有直接相关,但如果有人发现自己来自 Google,“:e”在 nvim-tree 中工作。
我把它放在这里是因为我就是这样来到这里的。
Not directly related, but if anyone finds themselves here from Google, ":e <location>" works in nvim-tree.
I'm putting this here because that's how I got here.