I often find myself wanting to edit a file on a remote machine but ssh is too slow to be running a text editor on the remote machine.. Solution? Vim can use rsync to download a copy of the file and then when you save it, it saves it back to the remote location!
Here’s a bash function I wrote to make it all easy….
So, just put these in your .bashrc with your relevant server details and you should be good to go! Best to be using ssh keys, that way you’re not typing in your password everytime you save..