3 ms·
I've been using emacs or vi for a long time. emacs is my primary editor. I used to use vi/vim more, because it is available just about everywhere and it's gre
by m463 6y ago
I've been using emacs or vi for a long time.
emacs is my primary editor.
I used to use vi/vim more, because it is available just about everywhere and it's great for quickly editing a config file on a remote system.
But once I started using tramp, I now use emacs for all systems.
Tramp is a built-in way of editing files on remote systems using ssh as the transport. I can edit remote config files on dumb iot devices that don't run much more than busybox - with highlighting and undo and all the full-featured stuff.
open /ssh:foo:.profile to edit your profile on remote system foo.
You can also mix files - local and remote - all in different buffers. copy/paste between them, etc.
One thing he mentioned I haven't tried is LSP. anyone have any tips?
- etaioinshrdlu 6y agoI really want to edit remote files but I’ve given up lately as I switch between 3 editors depending on the task and it’s quite complex. Sshfs never worked well enough. Now I just push to git...
- Izkata 6y ago> But once I started using tramp, I now use emacs for all systems. > Tramp is a built-in way of editing files on remote systems using ssh as the transport. I can edit remote config files on dumb iot devices that don't run much more than busybox - with highlighting and undo and all the full-featured stuff. > open /ssh:foo:.profile to edit your profile on remote system foo. Vim does it through scp: vim scp://user@host//path/to/file I don't usually use it (since vim is pretty much guaranteed to be installed remotely anyway), so I don't know what pitfalls/weirdness may exist, I just know it has the functionality.
- m463 6y agothank you, I learned something new today.