How to use GVIM to edit a remote file?

前端 未结 10 1595
日久生厌
日久生厌 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 03:52

    According to the docs BufEnter is processed after the file has been read and the buffer created, so my guess is that netrw successfully read the file but you have a plugin that assumes the file is on the local filesystem and is trying to access it, e.g. to run ctags.

    Try disabling all your plugin scripts except the default Vim ones, and then editing the file.

    Also, try editing a directory to see if netrw can read that - you need to put the / on the end so that netrw knows it is a dir.

提交回复
热议问题