✍︎ arscyni.cc: modernity ∝ nature.

  • 2 Posts
  • 3 Comments
Joined 6 months ago
cake
Cake day: November 14th, 2024

help-circle
  • Alt + F4 does not fail to quit the terminal window where Vim is running in if that shortcut is configured so. But if that terminal has other things going on in them, they’ll be closed as well. It’s like demolishing a house to undo some text written on a fridge note, albeit exaggerated.
    If Vim is not running in a terminal window, then that shortcut will indeed fail and users without knowledge of the commands below become stuck, sometimes to the point of a hard reboot.

    Vim Cheat Sheet

    :wq or :x or ZZ - write (save) and quit
    :q - quit (fails if there are unsaved changes)
    :q! or ZQ - quit and throw away unsaved changes
    :wqa - write (save) and quit on all tabs

    - -
    ✍︎ arscyni.cc: modernity ∝ nature.