The Greatest Linux Blog on the Internets. » read post

Edit remote files over SSH / SCP using GVim

  • July 13th, 2008

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.


Related posts:

  • Serve files via scp or sftp, without giving full shell access to users
  • Replacing tabs with spaces in Python code
  • A visual guide to the crontab file
  • Trackback URL for this post: http://linuxblog.pansapiens.com/2008/07/13/edit-remote-files-over-ssh-scp-using-gvim/trackback/

    Want your say?

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>