Brain Phrye

code cooking diy fiction personal photos politics reviews tools 

Vim scp://

[ Listen to article ]

Thanks to mpk today I learned that vim can work with scp “urls.” So vim scp://remote-host/kittens.txt works kind of as you’d expect. It can edit existing files - and for zsh tab completion will work here - or completely new files.

By default it’s going to edit files relative you your home dir - you’d need to do a double slash to edit a file from the root dir.