<?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>Ordering &#8211; Choose a job you love</title>
	<atom:link href="https://cajyl.com/en/category/ordering/feed/" rel="self" type="application/rss+xml" />
	<link>https://cajyl.com</link>
	<description>and you will never work a day</description>
	<lastBuildDate>Thu, 25 Jul 2024 22:31:10 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://cajyl.com/wp-content/uploads/2024/07/73130396cee06279d984fbd48e98a35d-80x80.webp</url>
	<title>Ordering &#8211; Choose a job you love</title>
	<link>https://cajyl.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Complete Guide to Vim Commands</title>
		<link>https://cajyl.com/en/complete-guide-to-vim-commands/</link>
					<comments>https://cajyl.com/en/complete-guide-to-vim-commands/#respond</comments>
		
		<dc:creator><![CDATA[Augustin]]></dc:creator>
		<pubDate>Thu, 25 Jul 2024 22:31:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ordering]]></category>
		<guid isPermaLink="false">https://cajyl.com/?p=3549</guid>

					<description><![CDATA[Vim is a powerful and flexible text editor, widely used by developers for its speed and efficiency. Although its command-line interface can be intimidating for beginners, mastering its commands can&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Vim is a powerful and flexible text editor, widely used by developers for its speed and efficiency. Although its command-line interface can be intimidating for beginners, mastering its commands can greatly improve your productivity. Here&#8217;s a complete rundown of Vim&#8217;s essential commands.</p>



<h2 id="vim-modes" class="wp-block-heading">Vim modes</h2>



<p>Vim has several operating modes. The main ones are :</p>



<ul class="wp-block-list">
<li><strong>Normal mode</strong>: The default mode for navigating and executing commands.</li>



<li><strong>Insert mode</strong>: To insert text.</li>



<li><strong>Visual mode</strong>: To select text.</li>



<li><strong>Command mode</strong>: To execute specific commands.<br></li>
</ul>



<h3 id="switching-between-modes" class="wp-block-heading">Switching between modes</h3>



<ul class="wp-block-list">
<li><strong>Esc</strong>: Return to Normal mode.</li>



<li><strong>i</strong>: Switch to Insert mode to the left of the cursor.</li>



<li><strong>a</strong>: Switch to Insert mode to the right of the cursor.</li>



<li><strong>v</strong>: Switch to Visual mode.</li>



<li><strong>(colon)</strong>: Switch to Command mode from Normal mode.<br></li>
</ul>



<h2 id="navigation" class="wp-block-heading">Navigation</h2>



<p>Navigating efficiently is crucial in Vim. Here are some basic commands:</p>



<ul class="wp-block-list">
<li><strong>h</strong>: Move the cursor to the left.</li>



<li><strong>j</strong>: Move the cursor down.</li>



<li><strong>k</strong>: Move the cursor upwards.</li>



<li><strong>l</strong>: Move the cursor to the right.</li>



<li><strong>w</strong>: Go to the beginning of the next word.</li>



<li><strong>b</strong>: Go to the beginning of the previous word.</li>



<li><strong>0</strong>: Go to the beginning of the line.</li>



<li>$ <strong>:</strong> Go to the end of the line.</li>



<li><strong>gg</strong>: Go to the beginning of the file.</li>



<li><strong>G</strong>: Go to the end of the file.<br></li>
</ul>



<h2 id="text-editing" class="wp-block-heading">Text Editing</h2>



<p>Vim offers a host of commands for editing text efficiently.</p>



<h3 id="insert-text" class="wp-block-heading">Insert text</h3>



<ul class="wp-block-list">
<li><strong>i</strong>: Insert before the cursor.</li>



<li><strong>I</strong>: Insert at the beginning of the line.</li>



<li><strong>a</strong>: Insert after the cursor.</li>



<li><strong>A</strong>: Insert at the end of the line.</li>



<li><strong>o</strong>: Insert a new line underneath.</li>



<li><strong>O</strong>: Insert a new line above.<br></li>
</ul>



<h3 id="delete-from-text" class="wp-block-heading">Delete from text</h3>



<ul class="wp-block-list">
<li><strong>x</strong>: Delete the character below the cursor.</li>



<li><strong>dd</strong>: Delete the entire line.</li>



<li><strong>dw</strong>: Delete to the beginning of the next word.</li>



<li><strong>D</strong>: Delete to the end of the line.<br></li>
</ul>



<h3 id="copy-and-paste" class="wp-block-heading">Copy and Paste</h3>



<ul class="wp-block-list">
<li><strong>yy</strong>: Copy (yank) the entire line.</li>



<li><strong>yw</strong>: Copy the next word.</li>



<li><strong>p</strong>: Paste after the cursor.</li>



<li><strong>P</strong>: Paste before the cursor.<br></li>
</ul>



<h3 id="undo-and-redo" class="wp-block-heading">Undo and Redo</h3>



<ul class="wp-block-list">
<li><strong>u</strong>: Cancel the last order.</li>



<li><strong>Ctrl + r</strong>: Restore a cancelled command.<br></li>
</ul>



<h2 id="search-and-replacement" class="wp-block-heading">Search and replacement</h2>



<p>Searching for and replacing text are common operations in file editing.</p>



<h3 id="search" class="wp-block-heading">Search</h3>



<ul class="wp-block-list">
<li><strong>/</strong>: Search forwards in the file.</li>



<li><strong>?</strong>: Search backwards in the file.</li>



<li><strong>n</strong>: Go to the next occurrence.</li>



<li><strong>N</strong>: Go to the previous occurrence.<br></li>
</ul>



<h3 id="replacement" class="wp-block-heading">Replacement</h3>



<ul class="wp-block-list">
<li><strong>:s/old/new</strong>: Replace the first occurrence on the current line.</li>



<li><strong>:s/old/new/g</strong>: Replace all occurrences on the current line.</li>



<li><strong>:%s/old/new/g</strong>: Replace all occurrences in the entire file.<br></li>
</ul>



<h2 id="file-management" class="wp-block-heading">File Management</h2>



<p>File management commands are essential for opening, saving and closing files.</p>



<ul class="wp-block-list">
<li><strong>:e file_name</strong>: Open a file.</li>



<li><strong>:w</strong>: Save the current file.</li>



<li><strong>:w filename</strong>: Save under another name.</li>



<li><strong>:q</strong>: Exit Vim.</li>



<li><strong>:q!</strong> Quit without saving.</li>



<li><strong>:wq</strong>: Save and exit.<br></li>
</ul>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>Vim is a powerful tool that can dramatically improve your workflow. Start with these basic commands and explore the many advanced features Vim has to offer. With practice, you&#8217;ll find that Vim becomes an indispensable tool in your development arsenal.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cajyl.com/en/complete-guide-to-vim-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3549</post-id>	</item>
	</channel>
</rss>
