
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=vim_cheatsheet</id>
		<title>vim cheatsheet - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=vim_cheatsheet"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=vim_cheatsheet&amp;action=history"/>
		<updated>2026-04-29T00:23:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=vim_cheatsheet&amp;diff=813&amp;oldid=prev</id>
		<title>Nighthawk at 15:26, 13 June 2014</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=vim_cheatsheet&amp;diff=813&amp;oldid=prev"/>
				<updated>2014-06-13T15:26:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:26, 13 June 2014&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; ctrl+wq - Quit a window&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; ctrl+wq - Quit a window&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; ctrl+wv - Split windows vertically&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; ctrl+wv - Split windows vertically&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;take from [http://www.worldtimzone.com/res/vi.html http://www.worldtimzone.com/res/vi.html]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:vim]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:vim]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=vim_cheatsheet&amp;diff=812&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot;Cursor movement      h - move left     j - move down     k - move up     l - move right     w - jump by start of words (punctuation considered words)     W - jump by words (sp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=vim_cheatsheet&amp;diff=812&amp;oldid=prev"/>
				<updated>2014-06-13T15:25:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Cursor movement      h - move left     j - move down     k - move up     l - move right     w - jump by start of words (punctuation considered words)     W - jump by words (sp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Cursor movement&lt;br /&gt;
&lt;br /&gt;
    h - move left&lt;br /&gt;
    j - move down&lt;br /&gt;
    k - move up&lt;br /&gt;
    l - move right&lt;br /&gt;
    w - jump by start of words (punctuation considered words)&lt;br /&gt;
    W - jump by words (spaces separate words)&lt;br /&gt;
    e - jump to end of words (punctuation considered words)&lt;br /&gt;
    E - jump to end of words (no punctuation)&lt;br /&gt;
    b - jump backward by words (punctuation considered words)&lt;br /&gt;
    B - jump backward by words (no punctuation)&lt;br /&gt;
    0 - (zero) start of line&lt;br /&gt;
    ^ - first non-blank character of line&lt;br /&gt;
    $ - end of line&lt;br /&gt;
    G - Go To command (prefix with number - 5G goes to line 5)&lt;br /&gt;
&lt;br /&gt;
Note: Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines.&lt;br /&gt;
Insert Mode - Inserting/Appending text&lt;br /&gt;
&lt;br /&gt;
    i - start insert mode at cursor&lt;br /&gt;
    I - insert at the beginning of the line&lt;br /&gt;
    a - append after the cursor&lt;br /&gt;
    A - append at the end of the line&lt;br /&gt;
    o - open (append) blank line below current line (no need to press return)&lt;br /&gt;
    O - open blank line above current line&lt;br /&gt;
    ea - append at end of word&lt;br /&gt;
    Esc - exit insert mode&lt;br /&gt;
&lt;br /&gt;
Editing&lt;br /&gt;
&lt;br /&gt;
    r - replace a single character (does not use insert mode)&lt;br /&gt;
    J - join line below to the current one&lt;br /&gt;
    cc - change (replace) an entire line&lt;br /&gt;
    cw - change (replace) to the end of word&lt;br /&gt;
    c$ - change (replace) to the end of line&lt;br /&gt;
    s - delete character at cursor and subsitute text&lt;br /&gt;
    S - delete line at cursor and substitute text (same as cc)&lt;br /&gt;
    xp - transpose two letters (delete and paste, technically)&lt;br /&gt;
    u - undo&lt;br /&gt;
    . - repeat last command&lt;br /&gt;
&lt;br /&gt;
Marking text (visual mode)&lt;br /&gt;
&lt;br /&gt;
    v - start visual mode, mark lines, then do command (such as y-yank)&lt;br /&gt;
    V - start Linewise visual mode&lt;br /&gt;
    o - move to other end of marked area&lt;br /&gt;
    Ctrl+v - start visual block mode&lt;br /&gt;
    O - move to Other corner of block&lt;br /&gt;
    aw - mark a word&lt;br /&gt;
    ab - a () block (with braces)&lt;br /&gt;
    aB - a {} block (with brackets)&lt;br /&gt;
    ib - inner () block&lt;br /&gt;
    iB - inner {} block&lt;br /&gt;
    Esc - exit visual mode&lt;br /&gt;
&lt;br /&gt;
Visual commands&lt;br /&gt;
&lt;br /&gt;
    &amp;gt; - shift right&lt;br /&gt;
    &amp;lt; - shift left&lt;br /&gt;
    y - yank (copy) marked text&lt;br /&gt;
    d - delete marked text&lt;br /&gt;
    ~ - switch case&lt;br /&gt;
&lt;br /&gt;
Cut and Paste&lt;br /&gt;
&lt;br /&gt;
    yy - yank (copy) a line&lt;br /&gt;
    2yy - yank 2 lines&lt;br /&gt;
    yw - yank word&lt;br /&gt;
    y$ - yank to end of line&lt;br /&gt;
    p - put (paste) the clipboard after cursor&lt;br /&gt;
    P - put (paste) before cursor&lt;br /&gt;
    dd - delete (cut) a line&lt;br /&gt;
    dw - delete (cut) the current word&lt;br /&gt;
    x - delete (cut) current character&lt;br /&gt;
&lt;br /&gt;
Exiting&lt;br /&gt;
&lt;br /&gt;
    :w - write (save) the file, but don't exit&lt;br /&gt;
    :wq - write (save) and quit&lt;br /&gt;
    :q - quit (fails if anything has changed)&lt;br /&gt;
    :q! - quit and throw away changes&lt;br /&gt;
&lt;br /&gt;
Search/Replace&lt;br /&gt;
&lt;br /&gt;
    /pattern - search for pattern&lt;br /&gt;
    ?pattern - search backward for pattern&lt;br /&gt;
    n - repeat search in same direction&lt;br /&gt;
    N - repeat search in opposite direction&lt;br /&gt;
    :%s/old/new/g - replace all old with new throughout file&lt;br /&gt;
    :%s/old/new/gc - replace all old with new throughout file with confirmations&lt;br /&gt;
&lt;br /&gt;
Working with multiple files&lt;br /&gt;
&lt;br /&gt;
    :e filename - Edit a file in a new buffer&lt;br /&gt;
    :bnext (or :bn) - go to next buffer&lt;br /&gt;
    :bprev (of :bp) - go to previous buffer&lt;br /&gt;
    :bd - delete a buffer (close a file)&lt;br /&gt;
    :sp filename - Open a file in a new buffer and split window&lt;br /&gt;
    ctrl+ws - Split windows&lt;br /&gt;
    ctrl+ww - switch between windows&lt;br /&gt;
    ctrl+wq - Quit a window&lt;br /&gt;
    ctrl+wv - Split windows vertically&lt;br /&gt;
[[category:vim]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>