Love this. On a lot of customer systems I do not have access to vim or at least not the level of access I prefer. Use your local vim and open the file over scp. Writing the file will upload the new file back to the server.
vim scp://user@myserver[:port]//path/to/file.txt
Unix - Linux StackExchange