<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>quit Archives | The Curious Technoid</title>
	<atom:link href="https://thecurioustechnoid.com/tag/quit/feed/" rel="self" type="application/rss+xml" />
	<link>https://thecurioustechnoid.com/tag/quit/</link>
	<description>technology made simple</description>
	<lastBuildDate>Tue, 07 Jul 2020 18:22:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://thecurioustechnoid.com/wp-content/uploads/2020/06/cropped-fav-1-32x32.png</url>
	<title>quit Archives | The Curious Technoid</title>
	<link>https://thecurioustechnoid.com/tag/quit/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Quit Vim ?</title>
		<link>https://thecurioustechnoid.com/how-to-quit-vim/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-quit-vim</link>
					<comments>https://thecurioustechnoid.com/how-to-quit-vim/#respond</comments>
		
		<dc:creator><![CDATA[Rakshith Chengappa Mullengada]]></dc:creator>
		<pubDate>Fri, 05 Jun 2020 13:35:14 +0000</pubDate>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[quit]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">https://thecurioustechnoid.com/?p=120</guid>

					<description><![CDATA[<p>More often than we realize, we see these memes teasing how difficult it is to quit vim if you are new to vim. What better way to start writing about vim than to show &#8220;How to Quit Vim&#8221;. Quitting is nothing but closing the open (and hidden) files in vim. There are multiple ways to&#8230;</p>
<p>The post <a href="https://thecurioustechnoid.com/how-to-quit-vim/">How to Quit Vim ?</a> appeared first on <a href="https://thecurioustechnoid.com">The Curious Technoid</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://youtu.be/41OAQWz-ei0" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thecurioustechnoid.com/wp-content/uploads/2020/06/WatchOnYoutubeImage.png" alt="" class="wp-image-78" width="210" height="87"/></a></figure></div>



<p>More often than we realize, we see these memes teasing how difficult it is to quit vim if you are new to vim. What better way to start writing about vim than to show &#8220;How to Quit Vim&#8221;.</p>



<p>Quitting is nothing but closing the open (and hidden) files in vim. There are multiple ways to quit vim:</p>



<h3 class="wp-block-heading">1. :q</h3>



<p>If only 1 file is open and there are no changes to the file, you can quit vim using the below command:</p>



<pre class="wp-block-code"><code>&lt;ESC>:q</code></pre>



<p>If there are any unsaved changes, vim will prompt you saying it cannot exit. Suppose if there are multiple files open in different tabs then it will close the file in the current tab.</p>



<h3 class="wp-block-heading">2. :q!</h3>



<p>If the above command failed to quit vim, you force vim to quit without saving using the below command:</p>



<pre class="wp-block-code"><code>&lt;ESC>:q!</code></pre>



<p>The exclamatory symbol force quits vim without saving. As before, if multiple files are open then it will close the file in the current tab.</p>



<h3 class="wp-block-heading">3. :qa[ll]</h3>



<p>What if there are multiple files that are open and we need to close all the files and quit vim? One way is you keep on hitting :q until all the open files are closed or, alternatively use the below command to quit all the files in one go:</p>



<pre class="wp-block-code"><code>&lt;ESC>:qall</code></pre>



<p>You can also use the shorter version:</p>



<pre class="wp-block-code"><code>&lt;ESC>:qa</code></pre>



<p>But be aware, similar to :q this will close all the files only if there are no unsaved files. If there are then vim will prompt you that it cannot quit.</p>



<h3 class="wp-block-heading">4.  :qa[ll]!</h3>



<p>I guess by now this is pretty self explanatory, it will close all the files before quitting vim even if there are unsaved changes. The unsaved changes will be lost.</p>



<h3 class="wp-block-heading">5. :wq  &lt;or&gt;  : x</h3>



<p>If you wish to save and close the file then use the below command:</p>



<pre class="wp-block-code"><code>&lt;ESC>:wq</code></pre>



<p>You can also use the single letter command:</p>



<pre class="wp-block-code"><code>&lt;ESC>:x</code></pre>



<p>This will save the open file in the current tab and close that file. This will quit vim only if there are only 1 tab that are open. If there are multiple files open in different tabs, then vim will close the current file and bring the file in the next tab ready to be edited.</p>



<h3 class="wp-block-heading">6. :wqa[ll]</h3>



<p>This is pretty self explanatory , it will save all the files and close all the files before quitting vim. Unlike :wq which might or might not quit vim, this will quit vim after taking care of all the files.</p>



<p>Hope after reading this article you will never be stuck inside vim again.</p>



<figure class="wp-block-embed-youtube aligncenter wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How to Quit Vim ?" width="640" height="360" src="https://www.youtube.com/embed/41OAQWz-ei0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p>The post <a href="https://thecurioustechnoid.com/how-to-quit-vim/">How to Quit Vim ?</a> appeared first on <a href="https://thecurioustechnoid.com">The Curious Technoid</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thecurioustechnoid.com/how-to-quit-vim/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Database Caching 28/39 queries in 0.005 seconds using Disk

Served from: thecurioustechnoid.com @ 2026-06-19 01:18:10 by W3 Total Cache
-->