Hacker News new | ask | show | jobs
by i6ruce 2167 days ago
... and install emacs?
2 comments

I am a strange beast when it comes to editor wars. I am indeed an Emacs user since roughly 25 years. However, being a sysadmin teaches you to be comfortable with vi since it is just not practical to install Emacs on every machine you have root access on. So I am actually happy to fire up vim to edit a config file.
Well, there is Tramp with the sudo edit method.

To access the remote machine via ssh and then use sudo to root access the files:

    /ssh:user@localhost|sudo:localhost:/path/to/file
This is using the multi-hop solution as explained here:

https://www.gnu.org/software/emacs/manual/html_node/tramp/Ad...

https://emacs.stackexchange.com/questions/17725/how-to-sudo-...

Why? ed is still available :-)