How to use GVIM to edit a remote file?

前端 未结 10 1700
日久生厌
日久生厌 2021-01-30 03:47

I use GVIM on Ubuntu 9.10. I\'m looking for the right way to configure GVIM to be able to edit remote files (HTML, PHP, CSS) by for exemple ftp.

  • When i use :e scp:
10条回答
  •  独厮守ぢ
    2021-01-30 04:15

    About your command, :e scp://username@remotehost/./path/to/file : note that with netrw, scp is taken relative to your home directory on that remote host. To avoid home-relative pathing, drop that "."; ie. :e scp://username@remotehost//path/to/file .

提交回复
热议问题