TextMate 2 introudced rmate, which has become a de-facto standard for editing remote files, with multiple implementations of the remote component and client implementations for other editors, including Sublime Text and Visual Studio Code.
I'm not satisfied with the latency involved in saving files with Vim's built-in
netrw (which has to run
sftp and thus open a new SSH session every time I save, blocking me from editing for a couple seconds). I'm not happy with the performance of editing via SSH filesystem mount (which doesn't let Vim know it's using a remote disk and can cause switching between GVim tabs to be quite slow, presumably as Vim talks to swap files or something). I want to edit with Vim via the rmate protocol, which maintains a persistent connection but is well aware of the remote nature of the file.
How can I use the rmate protocol with Vim? What plugin do I need? Is there a way to make netrw save via rmate instead of reconnecting every time?