.

  • TxzK@lemmy.zip
    link
    fedilink
    arrow-up
    42
    ·
    8 months ago

    Vim user here. The only way to exit vim is to pray to the Vim gods and sacrifice your first born, hoping that they’ll cause a cosmic ray to hit the right spot in the memory to flip the right bit that causes it to exit. There are no alternatives.

      • Simon@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        arrow-down
        17
        ·
        8 months ago

        Are you guys serious? Command q. or x. or wq. or use a proper fucking terminal so you can ctrl -z and resume.

        • Cethin@lemmy.zip
          link
          fedilink
          English
          arrow-up
          26
          ·
          8 months ago

          These is one of the oldest Linux memes. No, they aren’t serious. I have a hard time believing anyone here doesn’t actually know how to exit vim properly.

          • Revan343
            link
            fedilink
            arrow-up
            12
            ·
            edit-2
            8 months ago

            I have a hard time believing anyone here doesn’t actually know how to exit vim properly.

            You power cycle the machine, then run apt-get update && apt-get install nano, right?

            Fuckin \s, just in case that wasn’t clear

        • Revan343
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          edit-2
          8 months ago

          I am non-serious, I just don’t like vim (or emacs; if I’m editing a text file in a terminal I want nano, or I append manually with pipes as Linus intended).

          Most of my systems have X11 and some basic GUI text editor, my server is the exception that proves the rule. There is generally no actual reason to use Vim except liking Vim, or wanting to learn to like Vim.

          For those that do like Vim, or want to learn it for historical reasons? Good on you, have fun.

          If you like emacs fuck off though.

          • Hexarei@programming.dev
            link
            fedilink
            arrow-up
            5
            ·
            8 months ago

            The main reason for using (neo)vim is motions and text objects. Pretty cool to be able to type cxia, ]a, cxia to swap two function parameters in code. Or daf to delete a whole function.

            Even just f to jump to a specific character later in the line, or t to jump up to that character are absolutely life changing.

            I love love love editing HTML in neovim with the ability to do stuff like dst for “delete surrounding tag” or St<div class="something"> to surround the current selection with a new tag. I have yet to find another editor that can do stuff like that with just a couple key presses.