The Greatest Linux Blog on the Internets.

Ubuntu, I 'buntu, We all 'buntu, (but only if we want'u).

The Greatest Linux Blog on the Internets. header image 2

Edit remote files over SSH / SCP using GVim

July 13th, 2008 · 3 Comments · Linux

GVim, one of the graphical versions of vim for X11, has a handy feature … you can edit remote files over ssh. Launch GVim, and issue the command:

:e scp://username@someremotehost/./path/to/file

where username is your username on the remote server, someremote host is the hostname or ip of the server and /./path/to/file is just that … the path to the file on the remove server. Everytime you save with :w, the changes get transfered.

When used in combination with ssh-keys to avoid typing your password every time, this can make editing remote files really quick and easy.

Tags: ·····

3 Comments so far ↓

Leave a Comment