Usually on the remote i use lunarvim(neovim but with some default settings and plugins).
Other than that I usually have everything as a git repo, so i edit on my local/remote ide(pycharm, vscode or vscode server). I edit the files push them to the repo and then i just pull the files on my host.
I know this adds some steps to edit a simple file, but the version control etc can be a massive advantage depending on what you do.