Vim 有一个花哨的 NetRW 插件,可以让我输入
vim ftp://ftp.example.com/
并获得一个不错的目录列表,我可以通过在文件顶部按 CR 来编辑文件。
但是,我似乎无法对目录执行此操作。在我按 F1 时出现的帮助文件中,它说我应该能够:
BROWSING netrw-cr {{{2
Browsing is simple: move the cursor onto a file or directory of interest.
Hitting the <cr> (the return key) will select the file or directory.
Directories will themselves be listed, and files will be opened using the
protocol given in the original read request.
但是,当我使用j
/k
导航到目录并按<cr>
尝试打开它时,我得到:
somedirectory: Not a regular file
Vim 试图访问ftp://ftp.example.com/somedirectory
. 请注意,它没有添加表示它是目录的斜杠。
我不知道为什么会发生这种情况。我怎样才能在 Vim 中简单地进入该目录,而不必退出 Vim 并重新键入vim ftp://ftp.example.com/somedirectory/
?
我在 Ubuntu 14.04 上运行 Vim 7.4。