• Programmer Belch@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 year ago

    Don’t forget the ‘:’ before the q!, when you type ‘:’ you enter command mode, the q command quits the file and putting an exclamation mark after the q doesn’t save the file and forces the file to be closed

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Or if you want to text edit in hardcore mode, only use :x to exit. For after you’ve gotten used to vim and want to bring back some of the challenge.

    • BigDanishGuy@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      arrow-down
      4
      ·
      1 year ago

      Ok, I may have forgotten about the “:” but I stand by the rest, if you can’t remember how to do a qw, then you can’t be trusted to write to a file.