Lately I've been developing code that needs to be tested on a remote server. I played with a few different scripts to scp changes to the server and decided I needed something stronger. I went looking for a plugin for VIM and found out remote file editing is part of the base vim function.
You can specify a remote file path via scp://user@server/path/to/file or scp://user@server//fully/qualified/path/to/file .
Saving the file with copy over the changes. Any local editing done on the file is done in a temporary file that is cleaned up when the editor is closed.
Thursday, August 12, 2010
Subscribe to:
Posts (Atom)