Inspiration & Genius – One and the Same

Edit a file on a remote host using VIM and SCP

I got this command from SHELL-FU.ORG. This is going to make my life easier since I spend so much time hopping between platforms and servers.

You can directly edit a file on a remote host with the following:

vim scp://username@host//path/to/file

From what I’ve seen of the comments to this post on shell-fu.org, this only works with vim, and only if it has the netrw plugin installed.  Most distros have this plugin installed by default though. I guess there is always a catch but, if it works it’s a cool shortcut!

Leave a Reply

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

Genesis Framework

Genesis Framework for WordPress

Studiopress Themes

Scribble Theme - A Beautiful Frame For Your WordPress Website

Advertisements