//View Tip #628
Mike
Similar Tips
There are no more tips with these tags. Perhaps you'd like to submit one, or browse the archives.

Latest tips by RSS
Click here to subscribe

Follow Shell-Fu on Twitter
Click here to follow

Follow Shell-Fu on identi.ca
Click here to follow
You can directly edit a file on a remote host with the following:
Of course you can use a different editor if you *really* want to ;)
vim scp://username@host//path/to/file
Of course you can use a different editor if you *really* want to ;)
Comments
Add your comment
Comments are currently disabled
#1
Well it doesn't seem to work with every editor. Tried 'nano' just for fun, didn't recognize. Of course vim does.
Posted 2009-03-31 12:04:53
This only works with vim, and only if it has the netrw plugin installed. Most distros have this plugin installed by default though.
Posted 2009-03-31 12:48:53
I guess when the submitter said you can use a different editor he meant if you don't want to do cool things like this :)
Posted 2009-03-31 13:00:49