How To Diff Two Files With SSH/SCP Using VimDiff
erics, February 3rd, 2015
vimdiff /path/to/file.css scp://yourHost.com//path/to/file.css
vimdiff /path/to/file.css scp://yourHost.com//path/to/file.css
Launch X11 and start GVIM from an xterm in the background. Then type the following into the vim window: [code]:e scp://login@remotehost/full/path/to/the/file[/code] Replace the “login” above with your username on the remote host, “remotehost” is the name or ip of the server and /full/path/to/the/file is the absolute path to the file on the remove host. When […]