Windows上使用VIM访问Windows服务器共享目录
在 Windows 资源管理器中,我可以导航到“\\servername\shared_directory”。有什么方法可以使用 VIM 和 NERDTree 导航到同一目录吗?
示例:
<代码> :NERDTree \\服务器名\shared_directory
In Windows Explorer I can navigate to "\\servername\shared_directory". Is there any way I can navigate to the same directory using VIM and NERDTree?
Example:
:NERDTree \\servername\shared_drirectory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想您可能想向 NERDTree 开发人员报告此行为。我自己尝试过,不,它不起作用。
您可以尝试从 https://github.com/scrooloose/nerdtree 中提取当前的 NERDTree 或编写 < href="http://www.vim.org/account/profile.php?user_id=7006" rel="nofollow">开发人员。
I think you might want to report this behavior to the NERDTree developer. I tried it myself and no, it does not work.
You could try pulling the current NERDTree from https://github.com/scrooloose/nerdtree or writing the developer.
我不使用 NERDTree,但是
:browse e \\servername\shared_directory
和:e \\servername\shared_directory\filename.txt
在 gvim 中对我来说工作得很好。多玩一会儿,我发现正斜杠语法似乎甚至可以与制表符完成一起使用(当然,在我正确获取服务器和初始目录之后)。
如果 NERDTree 不想使用
//servername/directory
或\\servername\directory
,您可能需要尝试执行:lcd //首先是 servername/directory
,然后是:NERDTree .
。I don't use NERDTree, but both
:browse e \\servername\shared_directory
and:e \\servername\shared_directory\filename.txt
work fine for me in gvim.Playing with this a bit more, I see that the forward-slash syntax seems to even work with tab-completion (after I get the server and initial directory right, of course).
If NERDTree doesn't want to work with either
//servername/directory
or\\servername\directory
, you might want to try executing a:lcd //servername/directory
first, followed by:NERDTree .
.此问题已在此分支中修复: https://github.com/actionshrimp/nerdtree 。
从 https://github.com/actionshrimp/nerdtree/downloads 下载 nerdtree
This issue was fixed in this branch : https://github.com/actionshrimp/nerdtree .
Download nerdtree from https://github.com/actionshrimp/nerdtree/downloads