451
you are viewing a single comment's thread
view the rest of the comments
[-] CubitOom@infosec.pub 3 points 19 hours ago

I used to think this way. Until I found that with emacs you can edit any file on an SSH enabled computer remotely. Meaning that not only are you no longer constrained by what the computer has installed. But you can use your personality configured editor while editing that file. It's called tramp.

BTW, with Emacs you can use vim key bindings evil-mode, so don't stress about that.

[-] folkrav@lemmy.ca 7 points 16 hours ago

Tramp is more featured, but if all one cares about is being able to edit remote files using a local editor, vim can edit remote files with scp too: scp://user@server[:port]//remote/file.txt

I tried tramp-mode at some point, but I seem to remember some gotchas with LSP and pretty bleh latency, which didn't make it all that useful to me... But I admittedly didn't spend much time in emacs land.

[-] asyncopation@lemm.ee 5 points 16 hours ago

I've also used sshfs to mount a remote directory and edit using my local editor/env.

[-] calcopiritus@lemmy.world 2 points 18 hours ago

You can do that with vscode too. And probably many IDEs.

The only real reason for which you would need to use vim in such cases is if the target computer can't run the vscode server, which I've never encountered yet.

[-] CubitOom@infosec.pub 3 points 17 hours ago

I'm talking about not needing anything installed on the server though. Like you don't need sudo. If the server has ssh then you can use Emacs to edit a file on it

[-] calcopiritus@lemmy.world 1 points 15 hours ago

Don't need sudo or anything pre installed for vscode either. It will send the server to the machine via SSH and then run it automagically.

this post was submitted on 09 Jan 2025
451 points (94.8% liked)

linuxmemes

21748 readers
1319 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 2 years ago
    MODERATORS