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
Written by Rahul Trikha
Related protips
1 Response
Breaking stuff remotely just became a lot easier. Thanks for sharing :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#