gnr1xa
Last Updated: February 25, 2016
·
854
· rahult
E0123a4b0c419afa026675034b58b648

Editing a remote file with vim on your local machine

Handy way to edit remote files using your local vim with all its glorious settings :-)

No installation

vim scp://user@example.com//path/to/current/app/models/file.rb

Or if you have your SSH settings stored in ~/.ssh/config

Host example.com
User deploy
HostName example.com

You can write this directly

vim scp://example.com//path/to/current/app/models/file.rb

Note: Please make sure to have the extra / between your server and file path

Say Thanks
Respond

1 Response
Add your response

8446
10ca55864735b3ccefb16bd93a1596a7

Breaking stuff remotely just became a lot easier. Thanks for sharing :)

over 1 year ago ·
Filed Under