That's one way to do it. A better way to accomplish this with emacs is to use tramp mode which uses ssh as a tunnel to edit remote files in a local emacs instance. It just needs ssh access and doesn't require emacs to be installed remotely.
That being said, I actually haven't edited anything for a while; nowadays Emacs is more of a viewer when I want to check something in a project. But actually Emacs is still fairly central to my flow as all my projects use an org file for their writeup, and that includes issue tracking, and so I have an org-edit script (communicates with an Emacs instance instead of editing the file directly) and org-issues skill that ensures that file is kept updated by Claude.
I asked Grok compile some elisp to Vim Script. It was possible but weird. Grok says it not a language perse but ed-primitives with some add-ons like function!
Why bother learning any editor when you do not need to write code, and there is no reason to enter
gg=G``zz