<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Vim</id>
	<title>Vim - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Vim"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Vim&amp;action=history"/>
	<updated>2026-05-02T07:02:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Vim&amp;diff=312&amp;oldid=prev</id>
		<title>Ardika Sulistija at 20:19, 26 February 2025</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Vim&amp;diff=312&amp;oldid=prev"/>
		<updated>2025-02-26T20:19:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:19, 26 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;B&amp;gt;vim&amp;lt;/B&amp;gt; - Vi IMproved, a programmers text editor.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;B&amp;gt;vim&amp;lt;/B&amp;gt; - Vi IMproved, a programmers text editor.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;Vim Cheatsheet&amp;lt;/b&amp;gt;: https://devhints.io/vim&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;Vim Cheatsheet&amp;lt;/b&amp;gt;: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;https://devhints.io/vim&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https://vim.rtorr.com/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;Go&amp;lt;/b&amp;gt; - end of file, new line.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;Go&amp;lt;/b&amp;gt; - end of file, new line.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Vim&amp;diff=202&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;  &lt;B&gt;vim&lt;/B&gt; - Vi IMproved, a programmers text editor.  &lt;b&gt;Vim Cheatsheet&lt;/b&gt;: https://devhints.io/vim   &lt;b&gt;Go&lt;/b&gt; - end of file, new line. ----   Vim shortcut keys:  &quot;:&quot;                              (shift + ;), Brings up the vim command line  esc                              To get out of the command line thing.  &quot;i&quot;                              Insert mode  &quot;a&quot;                              Append after cursor position  &quot;r&quot;                              Replace letter...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Vim&amp;diff=202&amp;oldid=prev"/>
		<updated>2024-09-11T14:36:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &amp;lt;B&amp;gt;vim&amp;lt;/B&amp;gt; - Vi IMproved, a programmers text editor.  &amp;lt;b&amp;gt;Vim Cheatsheet&amp;lt;/b&amp;gt;: https://devhints.io/vim   &amp;lt;b&amp;gt;Go&amp;lt;/b&amp;gt; - end of file, new line. ----   Vim shortcut keys:  &amp;quot;:&amp;quot;                              (shift + ;), Brings up the vim command line  esc                              To get out of the command line thing.  &amp;quot;i&amp;quot;                              Insert mode  &amp;quot;a&amp;quot;                              Append after cursor position  &amp;quot;r&amp;quot;                              Replace letter...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt;vim&amp;lt;/B&amp;gt; - Vi IMproved, a programmers text editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Vim Cheatsheet&amp;lt;/b&amp;gt;: https://devhints.io/vim&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Go&amp;lt;/b&amp;gt; - end of file, new line.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Vim shortcut keys:&lt;br /&gt;
 &amp;quot;:&amp;quot;                              (shift + ;), Brings up the vim command line&lt;br /&gt;
 esc                              To get out of the command line thing.&lt;br /&gt;
 &amp;quot;i&amp;quot;                              Insert mode&lt;br /&gt;
 &amp;quot;a&amp;quot;                              Append after cursor position&lt;br /&gt;
 &amp;quot;r&amp;quot;                              Replace letter&lt;br /&gt;
 &amp;quot;o&amp;quot;                              Open line below cursor position automatically goes into insert mode&lt;br /&gt;
 &amp;quot;O&amp;quot;                              Open line above cursor in insert mode&lt;br /&gt;
 &amp;quot;dd&amp;quot;                             CUT line&lt;br /&gt;
 &amp;quot;p&amp;quot; or 10p                       PASTE line, or paste 10 times&lt;br /&gt;
 &amp;quot;yy&amp;quot;                             COPY line&lt;br /&gt;
 &amp;quot;3dd&amp;quot;                            CUT 3 lines from where your cursor is. Can use this in cmd line&lt;br /&gt;
 &amp;quot;4yy&amp;quot;                            PASTES 4 lines from where you cursor is. Can use this in cmd line&lt;br /&gt;
 &amp;quot;u&amp;quot;                              UNDO&lt;br /&gt;
 :w                               Saves&lt;br /&gt;
 SHIFT + zz                       Save file&lt;br /&gt;
 :wq or :x                        Save &amp;amp; Quit&lt;br /&gt;
 :q                               Quit&lt;br /&gt;
 :q!                              Force quit, no save&lt;br /&gt;
 :d                               Delete line&lt;br /&gt;
 :5d                              Delete 5 lines&lt;br /&gt;
 :/[strg]                         Search for a string, searches DOWNward &amp;quot;n&amp;quot;&lt;br /&gt;
 :?[strg]                         Search for a string, searches UPward &amp;quot;n&amp;quot;&lt;br /&gt;
 &amp;quot;n&amp;quot;                              Move to next highlighted/cursor&lt;br /&gt;
 :1                               Moves cursor to the first line&lt;br /&gt;
 :[x]                             Moves cursor to the line [x]&lt;br /&gt;
 :$                               Moves cursor to the last line&lt;br /&gt;
 :1,$s/[strg]/[replacement]/      Searches from first line to the last line ($) for [strng] and replaces it with [replacement]&lt;br /&gt;
 :1,$s/[strg]/[replacement]/g     G is for global.&lt;br /&gt;
                                 Replaces multiple [strg] in ONE line.&lt;br /&gt;
 :1,$s/[strg]/[replacement]/gi    G is for global, i is for case insensitive&lt;br /&gt;
 :1,.g/[strg]/d                   Search for that word until where my cursor is (.) and delete it&lt;br /&gt;
 :se nu                           Shows the line numbers&lt;br /&gt;
 :se nonu                         Hides the line numbers&lt;br /&gt;
 :![command]                      Run command but does not exit VIM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====How to change colors in Vim for better visual  (dark blue comments are hard to read)====&lt;br /&gt;
----&lt;br /&gt;
As you are using a dark background in your terminal, you simply need to set&lt;br /&gt;
 :set background=dark&lt;br /&gt;
&lt;br /&gt;
instead of the default&lt;br /&gt;
 :set background=light&lt;br /&gt;
&lt;br /&gt;
The colors are then automatically correctly set.&lt;br /&gt;
&lt;br /&gt;
If you want to have this permanently, add the line to your $HOME/.vimrc file.&lt;br /&gt;
 set background=dark&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copy &amp;amp; Pasting====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Copying (Yanking)&lt;br /&gt;
 yy: Copy the current line in vi&lt;br /&gt;
 3yy: To yank multiple lines in vim, type in the number of lines followed by yy. This command will copy (yank) 3 lines starting from your cursor position.&lt;br /&gt;
 y$: Copy everything from the cursor to the end of the line&lt;br /&gt;
 y^: Copy everything from the start of the line to the cursor.&lt;br /&gt;
 yiw: Copy the current word.&lt;br /&gt;
&lt;br /&gt;
Cutting (Deleting)&lt;br /&gt;
 dd: Cut the current line&lt;br /&gt;
 3dd: Cut 3 lines, starting from the cursor&lt;br /&gt;
 d$: Cut everything from the cursor to the end of the line&lt;br /&gt;
&lt;br /&gt;
Putting (Pasting)&lt;br /&gt;
 P (uppercase): Paste before your cursor&lt;br /&gt;
 p (lowercase): Paste after your cursor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Spawn a shell using Vi/Vim====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This is a feature, not a bug, but you can spawn a shell with Vim by opening/creating a file using sudo/root access, and typing:&lt;br /&gt;
 :!/bin/bash&lt;br /&gt;
&lt;br /&gt;
For information about Vim privilege escalation, see articles:&amp;lt;/br&amp;gt;&lt;br /&gt;
https://medium.com/@davidkarpinski1/privilege-escalation-through-vim-1a6524a10cea&amp;lt;/br&amp;gt;&lt;br /&gt;
https://medium.com/@pettyhacks/linux-privilege-escalation-via-vi-36c00fcd4f5e&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>