you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 1 year ago (18 children)

5 key presses to save and exit. Frickin vim.

  • source
  • hideshow 18 child comments
  • [–] 38 points 1 year ago (8 children)

    I’m pretty sure that’s close without saving changes. :wq would be needed to save.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 18 points 1 year ago (7 children)

    To be precise, : means bring up commands, w means save, q means exit, and ! means force

  • source
  • parent
  • hideshow 7 child comments
  • [–] 13 points 1 year ago (5 children)

    I think it's w = write and q = quit so the letters make more sense

  • source
  • parent
  • hideshow 5 child comments
  • [–] 10 points 1 year ago (4 children)
  • [–] 10 points 1 year ago (1 child)

    Or 3. Hold shift, press ZZ to save and quit ZQ to quit without saving.

    5. Writing and quitting

      					ZZ
    

    ZZ Write current file, if modified, and close the current window (same as ":x"). If there are several windows for the current file, only the current window is closed.

      					ZQ
    

    ZQ Quit without checking for changes (same as ":q!").

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 1 year ago* (3 children)

    four. the ! is unnecessary. how many actions are there to save and quit in other editors? ctrl, s, ctrl, w is four. move to file, click, move to save, click, move to ×, click is six.

    and that's before we replace the wq with x.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago (2 children)

    If we count the modifier keys:

    Vim: esc, shift+:, w, q, Enter

    Emacs: ctrl-s, crtl+x ctrl+c, or use the menu options

    I use both, but find Emacs much quicker, though vim is easier to learn, though Emacs is easier while you're learning

  • source
  • parent
  • hideshow 2 child comments