edit a remote file with vim

linux, scp, vim

Solution

Since Vim 6.x the netrw plugin is installed as a standard plugin. So you can edit files via ftp, rcp, scp or http.

For `scp` actions is useful to open the file as follows:

vim scp://remoteuser@server.tld//path/to/document

You get a bunch of information on Vim tips pages.

Problem

I'm trying to edit a remote file with vim 7.2 using this command ":e scp://username@host//home/oracle/filename.ksh". But I get this error "scp: not found". Then I placed the scp file in home/oracle. But still I get the same error. What am I missing?

Original source