this post was submitted on 09 Jan 2025
466 points (95.0% liked)

linuxmemes

21752 readers
1885 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
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] [email protected] 14 points 1 day ago (5 children)

    Have been a professional software engineer for 8 years now. Have yet to find a reason to use vim for anything (other than availability of course, but if nano isn't installed for some godforsaken reason I have other problems lol).

    [–] toynbee 26 points 1 day ago* (last edited 1 day ago)

    I've been in various forms of coding and administration for around fifteen years now. Despite trying lots of editors, I have yet to find a reason to use anything but vim.

    I do like obsidian for note taking.

    edit: Removed typo.

    [–] chellomere 17 points 1 day ago

    Professional software engineer here, using vim as my primary editor.

    [–] AntY 9 points 1 day ago

    Vim is a way more competent editor than nano. If you spend a lot of time editing files via ssh, vim is amazing. And when you get bitten by it, you’re infected. ;-)

    [–] [email protected] 4 points 1 day ago

    Fair. But to a sysadmin or devops engineer availability is pretty important.

    [–] [email protected] 3 points 1 day ago (2 children)

    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.

    [–] [email protected] 7 points 1 day ago (1 children)

    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.

    [–] [email protected] 5 points 1 day ago

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

    [–] calcopiritus 2 points 1 day ago (1 children)

    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.

    [–] [email protected] 3 points 1 day ago (1 children)

    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 1 points 1 day 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.