logo

How to Exit Vim: A Complete Guide for Beginners and Pros

Posted by dxs |3 hours ago |3 comments

dlcarrier 37 minutes ago

Here's what I do:

    :wq[enter]
…then I notice I forgot to press escape and typed that text into the document, so I undo it with this

    [esc][shift+j]
    k[end]dl..
…before finally saving and quitting, the right way:

    [scape]:wq[enter]

rrr_oh_man 2 hours ago

"Describe :q in 1,000 words or more"

dabinat 2 hours ago

This article is AI slop but it does illustrate a good point: if articles need to be written on how to do something as simple as exiting the app, it’s poorly designed. They’ve had a very long time to make exiting vim more user-friendly.