• FinalBoy1975@lemmy.world
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    2
    ·
    2 years ago

    I actually learned how to use vi like 30 years ago and I had all the commands memorized. Then, nano came along. All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up. However, I can’t help but suspect that somewhere out there I might have left a vi session open because maybe I mistyped. I might have accidentally typed ;q! instead of :q! or something.

    • ChapolinColoradoNZ@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      I get stressed out every time I need to jump into a server and check something and the only editor is vi. If I can I install nano straight away. Btw, :q! does nothing without pressing ESC first! Hehehe

    • TheInsane42@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      I’m feeling old now… I’ve been using vi for 35y now and was happy when I got vi.exe on a dos box, as I hated edit. I still don’t like ‘simple’ editors like nano/joe.

      I used kill to get out of emacs when trying it agter 7y of vi usage, so I get the need to get mideval on editors users aren’t used off. ;)

      • FinalBoy1975@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 years ago

        vi has always been my bane because I’m a sloppy typist. I can’t count the number of files i had to fix because they ended with :q i like nano because the commands are ctrl + whatever. i don’t make a mess.

    • glibg10b@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 years ago

      All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up.

      But you already had the Vi commands memorized. Did you forget them in the meantime?

  • glibg10b@lemmy.ml
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    2 years ago
      • Esc × 2
      • CTRL-] × 2
      • CTRL-\ CTRL-N × 2
      • :q
      • :qa
      • :wq
      • :wq!
      • :wqa
      • :x
      • ZZ
      • :q!
      • ZQ
      • :q!
      • :cq
  • GreenMario@lemm.ee
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    Nano is pretty good if you’re in a terminal. Used to use vim for ssh related stuff but since nano added syntax highlights I didn’t go back.

    • glibg10b@lemmy.ml
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      2 years ago

      Nano’s only appeal is that is begiinner-friendly, but you already know Vim, so why switch?

    • Doc Blaze@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      it’s funny because as much as I hate gnome desktop, I feel like gnu really does makes the best Linux software. disks utility, nano editor, I’d even argue gnu paint without the ability to undo is more intuitive and superior to most of the closed source commercial stuff of similar purpose you can find out there.

      actually, some of the best looking desktops I’ve seen are heavily customized versions of gnome (pop os, nobara official) so maybe I’m wrong on that too.

    • russjr08@outpost.zeuslink.net
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      Remember to actually kill the process though, since that will only background/suspend it in most cases.

      (Be sure to save the file though first, Vim creates a “swap” / recovery file but its best to not rely on that, use fg to re-open, then press escape and type :wq)

    • glibg10b@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 years ago

      Followed by kill -9 %1 to actually kill the process, otherwise your terminal might complain or freeze up when you try to close it