• marcos@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      3 months ago

      When $EDITOR is vim, but I expected anything else:

      opens file, with small text on the top; text begins changing; text duplicates in size, then triples; text returns to original size; text increases in size to fit several screens…

      Then my great reflexes kick on and I notice something wrong :)

    • StumblingWasabi@lemmy.today
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      First few time I opened vim (will neovim) I failed to see how to enter a command, and closed the window to get out of it

  • FedX@quokk.au
    link
    fedilink
    English
    arrow-up
    44
    ·
    3 months ago

    I will legitimately go esc, :w, i on Google Docs to try and save the document…

    • rescue_toaster@lemmy.zip
      link
      fedilink
      arrow-up
      29
      ·
      3 months ago

      Escape in some email clients cancels a new email. I had to retype many emails before email clients began auto-saving drafts.

      • TerHu@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        my work client cancels the new mail without there being a draft, though that may be because of muscle memory pressing a key combo after esc. its major pain o7

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      I often xs on graphic IDEs too.

      On most of them, it works if you don’t have any text selected. The Microsoft ones do really weird things.

    • graycube@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      3 months ago

      Instead of using the arrow keys most vi & him users navigate the cursor around the doc by using letter keys. I do it so subcociously now I am not sure which direction is the j when I use my phone.

        • owsei@programming.dev
          link
          fedilink
          arrow-up
          10
          ·
          3 months ago

          Vim has several modes. INSERT mode let’s you write text, NORMAL mode let’s you navigate (with h,j,k,l and others) and perform operations on the text with your keyboard, like “dw” to Delete Word or “A” to enter insert mode at the end of the line.

          You can use arrow keys to navigate in insert mode. However I just press escape, which changes to normal, navigate to where I want to, then change to insert mode.

          I may seem like this makes simple navigation complex, and it kinda does. But complex navigation becomes easier.

          Vi (and vim and neovim)'s primary concern is viewing and editing code, writing is secondary (although it’s still an excellent experience)

        • NominatedNemesis@reddthat.com
          link
          fedilink
          arrow-up
          5
          ·
          3 months ago

          Yes, (neo)vi(m) has different modes, in normal mode the characters are shortcuts, hjkl is used for navigation. However other methods are prefered, w, e, b - jumping words, f,t - jumping to a specific character etc. Its way faster. Also it can be combined d2w (d)eletes the next (2) (w)ord. Or more advanced di" (d)eletes the text (i)nside the “…”

          Insert mode is what you except: it writes what you type. Can be accessed by i - (i)nsert before a - (a)append after. Going back to normal mode is ESC (or many configure tab)

  • bebabalula@feddit.dk
    link
    fedilink
    arrow-up
    7
    ·
    3 months ago

    I cannot begin to describe how many times I’ve had to re-type the same info in some input form because I hit esc when I had first finished it!

  • NABDad@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 months ago

    It’s been so long since I worked on a machine where I couldn’t use the cursor keys in vi, I don’t think I’d even be able to anymore.

  • FancyPantsFIRE@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 months ago

    I only understand this reference because I worked for a company at one point that had a large number of NeXT and Solaris hosts that only had vi installed with letter key navigation, so my muscle memory does not use arrow keys.

  • VitoRobles@lemmy.today
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    Coders use word docs?

    I’m not a programmer but I still open up notepad and write in markdown.

    It’s just faster.

  • replicat@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    ITT: People who don’t use vim and insist we have arrow keys now so don’t need hjkl anymore.

  • Aneb@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    Here’s what my terminal usually looks like

    @>vim srv/txt.txt Writes a bunch of lines of code/words/docker containers. [ESC] :sq Can’t edit file without sudo :q! @>sudo vim srv/txt.txt 🥹