Opening files over SSH in vim

Tagged Blog, Vim
on (1 min read)

vim is awesome for editing files locally but copying your .vimrc to every system you want to edit files on and keeping it in sync can be a real PITA. You could use something like Cowboy's dotfiles, but if you're working on systems you don't control you probably don't want to be putting your vim config there anyway.

A great alternative is opening the files within your own local install of vim (or mvim if you have it installed on OSX) over SSH.

vim scp://

Here is a gif of it in action

Opening files over SCP with vim

James Loh
James Loh

I'm a Sysadmin for a web solutions company deploying clouds across the globe. I learn new things every day.

Subscribe to James Loh

Get the latest posts delivered right to your inbox