Edit remote files with local Vim

来源:互联网 发布:牛津简明英语词典 知乎 编辑:程序博客网 时间:2024/06/06 23:59

You could do this by mounting the remote folder as a file-system using sshfs. To do this, first some pre-requisites:

sudo apt-get install sshfs      #for Debian based OS, use yum or zypper depending on your OSsudo adduser <username> fuse

Now, do the mounting process:

mkdir ~/remoteserv    sshfs -o idmap=user <username>@<ipaddress>:/remotepath ~/remoteserv

After this, just go into the mounted folder and use your own local customized vim.

0 0
原创粉丝点击