How to use GVIM to edit a remote file?

前端 未结 10 1593
日久生厌
日久生厌 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:14

    Try this

    :e scp://username@remotehost//path/to/file
    

    Note that the use of // is intentional after remotehost it gives the absolute path of your file :)

    http://www.celsius1414.com/2009/08/19/how-to-edit-remote-files-with-local-vim/

提交回复
热议问题