分类: LINUX
2011-02-22 22:22:30
and then
sshfs remoteuser@remotehost:/remote/path /local/mountpointAnd that will let you edit your remote files as if the where on your local file system.
To make it even smoother you can add a line to /etc/fstab
sshfs#remoteusername@remotehost:/remote/path /local/mountpoint fuse user,noautoIt would be useful to note if netrw.vim was loaded by vim when it started.
:echo exists("g:loaded_netrwPlugin")For opening files over ssh, you need your local machine's public key in the server's authorized keys. Following help section in vim documentation explains it pretty well.
:help netrw-ssh-hackQuick way to export public key would be by using ssh-copy-id (if available).
And have a look at netrw documentation for network file editing over other protocols.
:help netrw