• Danny M@lemmy.escapebigtech.info
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    6 months ago

    I prefer the extremely intuitive:

    [C-R]=system("grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9")

    or

    i:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9[esc]Y:@"[cr]

    It just rolls off the fingers, doesn’t it?

    Edit: damn it lemmy didn’t like my meme because it assumes that characters between angle brackets are html tags :( you ruined it lemmy

    EDIT 2: rewrote it, just assume that square brackets are buttons not characters

  • aard@kyu.de
    link
    fedilink
    arrow-up
    4
    ·
    6 months ago

    I always get annoyed when I’m on some system and nano pops up and I need to figure out how to kill that thing.

      • aard@kyu.de
        link
        fedilink
        arrow-up
        1
        arrow-down
        4
        ·
        6 months ago

        It shows a message which wastes valuable screen estate, especially on low resolution terminals, containing a message I have to read every single time because the keys are not in muscle memory, and never will because the bindings are stupid.

        On systems I have control over the reaction to nano popping up is exiting, removing it, making sure the package system blocks reinstallation attempts, and go back to what I was initially doing in a sane editor.

    • 0x4E4F@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      6 months ago

      When you know how to exit, you just slap your face 🤦 and ask “why… why, please, why don’t they add new shortcuts 🤦!”.

      • mvirts@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Lol if you know how to exit, you may know that you actually can change almost everything about vim.

        • 0x4E4F@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          edit-2
          6 months ago

          I don’t think you can add modifier keys in shortcuts.

          And this behavior should come out of the box, not me changing stuff around so I can make it usable. For something that I use all the time, sure, but I only use a terminal text editor with git, and I don’t use git that often. For everything else, I use a GUI text editor (mousepad, leafpad, whatever).

  • JackGreenEarth@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    I’ve never understood people arguing about terminal text editors like nano and vim. Why not just use a GUI text editor like gedit?

    • EarthlingHazard@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      I’m not the most Linux savvy but when I ssh onto a work machine I’ll use a terminal editor instead of copying the file onto a local machine, editing the file in a GUI and then overwriting the file on the remote machine

  • LainOfTheWired@lemy.lol
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    Wouldn’t you want to just want to type q! As you’ve probably opened it and accidentally made changes you didn’t want to. So you wouldn’t want to save the config file. Or the text file you just created.

  • Doctor xNo@r.nf
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    There’s a button to exit vim on your pc. Just hold it 7 seconds and vim is closed. 😅