• mostlikelyaperson@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        Esc :q for closing if you didn’t modify anything, :!q for closing and discarding any changes you made and:wq for closing and writing the changes to the file.

        • cepelinas@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          I was joking I know how to exit because of sudoedit it just feels like it should be on the main screen like nano or atleast ctrl+c should exit.

            • cepelinas@sopuli.xyz
              link
              fedilink
              arrow-up
              1
              ·
              8 hours ago

              If you had read the other rssponse about basically the same thing you would know that the last time when I accidentally went into vim it didn’t show it for me and infact it probably was vim-tiny. I am sorry for sounding condesending.

          • expr@programming.dev
            link
            fedilink
            arrow-up
            5
            ·
            edit-2
            15 hours ago

            Ctrl-C absolutely should not exit. There’s plenty of times you want it in vim to interrupt something in the editor.

            As others have said, it’s on the screen if you open vim without a file. Otherwise, it’s a tool for people that bother to learn how to use it. As someone who has been using it daily for the last 10 years, I would find it incredibly obnoxious to have a bunch of useless screen clutter telling me basic things that are easily learned.

              • expr@programming.dev
                link
                fedilink
                arrow-up
                4
                ·
                1 day ago

                Vim has an entire dedicated scripting language built right into the editor and accessible while editing.

                Even without plugins, sometimes certain things can be too slow and you want to stop them.

          • ewenak@jlai.lu
            link
            fedilink
            arrow-up
            3
            ·
            1 day ago

            If you start vim without opening a file it’s written on the screen in the beginning. It disappears as soon as you start writing something though.

      • expr@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        12 hours ago

        It’s a tool with a medium-high skill floor and incredibly high skill ceiling. It rewards investment and is something that is able to accommodate one’s growth in skills rather than holding them back with limitations like typical editors do. Its built-in scripting is a big part of that and is something that really sets it apart from editors like vscode. And it’s much, much faster and lighter weight/less memory-intensive than other editors.