I am used to Sublime's plugin that let's you do a mapping between your local project and a remote project. By doing so, when you are done editing a file, you can do a right click and "Upload file" action which automatically updates the file in the remote server.
I am wondering what would be the best way to do this while programming with VIM. I am looking for an easy way to be able to map a local project to a remote one and be able to upload the file easily.
Thanks
If all you want is to edit files on a remote server,
try vim's netrw
feature:
vim scp://you@yourserver//path/to/directory/
Edit a file directly:
vim scp://you@yourserver//path/to/directory/somefile.txt
Or if you are already in vim
, hit ESC
, then type:
:e scp://you@yourserver//path/to/directory/
This assumes that:
ssh
installed (usually the case for Linux or OSX; if you are on Windows then it depends).ssh
access to the server via some convenient method (sshagent
and keys)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With