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

2019-05-31 09:48发布

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.

标签: vim ftp macvim
1条回答
倾城 Initia
2楼-- · 2019-05-31 10:52

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
查看更多
登录 后发表回答