People need to stop editing directly on servers. Vim's netrw can write out over scp, use your configured vim on your desktop to edit the files on the server.
But I'm not really familiar with netrw other than just:
:e scp://host/path/file
On vanilla vim if you :e scp://host// you should get the built in netrw browser working over scp.