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

(linuxvox.com)

2 points | by dxs 12 hours ago ago

3 comments

  • dlcarrier 10 hours 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 12 hours ago

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

  • dabinat 11 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.