我如何获得标准的Vim FTP命令? [英] How do I get the standard Vim FTP command to work?
问题描述
当我在Vim中执行 vim ftp:// [user @] machine / path
时,出现以下错误: E683:文件名缺失或无效模式
。为什么id vim将这个命令当作搜索模式?
我在MacVim和Terminal Vim中遇到同样的错误。
通常你想启动Vim,然后通过ftp编辑文件。使用网址调用 vim
可能不起作用。你应该给文件路径作为 vim
的参数,这就是导致错误的原因。
另外,错误说:
文件名缺失或无效模式
Vim不会将其视为搜索模式。注意或。它发生没有给出文件名。
尝试启动vim然后:
:e ftp:// [user @] machine / path
When I do vim ftp://[user@]machine/path
in Vim I get this error: E683: File name missing or invalid pattern
. Why id Vim treating this command as a search pattern?
I'm getting the same error in MacVim and Terminal Vim.
Usually you want to start Vim and then edit a file over ftp. Calling vim
with a url may not work. You're supposed give a file path as argument to vim
and that's what's causing the error.
Also, the error says:
File name missing or invalid pattern
Vim is not treating it as a search pattern. Notice the "or". It happens that no file name is given.
Try starting vim and then:
:e ftp://[user@]machine/path
这篇关于我如何获得标准的Vim FTP命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!