开发者

How do I get the standard Vim FTP command to work?

开发者 https://www.devze.com 2023-02-13 21:12 出处:网络
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?

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
0

精彩评论

暂无评论...
验证码 换一张
取 消