Why don't you SSH _from_ Emacs?
If you are editing a remote file there's usually no need to SSH and then invoke an editor.
If you are editing a remote file there's usually no need to SSH and then invoke an editor.
But in case I am plopped in front of an unknown terminal/have to do something on someone else's machine ... at least I can rely on using the default vim to do basic editing.
If I'm writing a lot of code or doing a refactor needing more thought, I'll do it locally, to be sure.