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

旧城冷巷雨未停 提交于 2019-12-08 04:32:47

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/5129864/how-do-i-get-the-standard-vim-ftp-command-to-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!