Last Updated: February 25, 2016
·
2.344K
· rahult

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

1 Response
Add your response

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

over 1 year ago ·