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

Personally, I have seen so many memes about exiting vim that by the time I got to use it for the first time, exiting it was a no-brainer.

For any newbies out there, the command is

:wq
  • source
  • hideshow 12 child comments
  • [–] 29 points 1 year ago (2 children)

    Just to add: possible need to tap esc first, as your random flailing probably put you in insert mode, or something more exotic.

    And only add w if you want to save the file. :q! If you don't

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

    😳

    :w = write; or overwrite if the file already exists.

    Please don’t give blanket destructive advice.

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

    This one's fine. They'll then learn the next vim button, u for undo. I believe it's saved between boots of vim? It may be my kickstarted neovim config tho

  • source
  • parent
  • hideshow 1 child comment