Then typing :q is literal, as in a colon not a semi-colon, so it would be Shift+ followed by q and hitting the Return key enters the command to quit. To be perfectly clear, hitting the “Escape” key enters into command mode. Hit the ESCAPE key, then type :q and hit RETURN These are the two fastest ways to exit out of VIM for me personally, but everyone has their own opinions here and many prefer to type a command in the more traditional manner. Quickly Quit VIM with Write & Save to File This will instantly quit out of VIM without saving, basically the same as the :q! command. Let’s get to the easiest methods first: Quit VIM without saving with ZQ This is a question that appears in our comments fairly often on command line articles… how on earth to actually quit out of VIM? It turns out there are literally 10+ ways to quit out of VIM, which is perhaps indicative of why VI baffles so many users.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |