<?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>Papillon&#039;s .plan &#187; Cheatsheet</title>
	<atom:link href="http://papillon.nwnx.org/index.php/archives/category/cheatsheet/feed" rel="self" type="application/rss+xml" />
	<link>http://papillon.nwnx.org</link>
	<description>A personal cheat sheet</description>
	<lastBuildDate>Thu, 24 Jun 2010 09:05:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Notes on vim</title>
		<link>http://papillon.nwnx.org/index.php/archives/29</link>
		<comments>http://papillon.nwnx.org/index.php/archives/29#comments</comments>
		<pubDate>Wed, 19 May 2010 10:23:49 +0000</pubDate>
		<dc:creator>papillon</dc:creator>
				<category><![CDATA[Cheatsheet]]></category>

		<guid isPermaLink="false">http://papillon.nwnx.org/index.php/archives/29</guid>
		<description><![CDATA[Movement
f,F Find char, find char backwards
; Repeat last find
zL Scroll half a screenwidth to the left
Copy and paste
"ay Copy visual selection to register A
"ap Paste from register A
Mark
ma Set mark &#8220;a&#8221;
'a Go to mark &#8220;a&#8221;
Searching
/ Search forward
? Search backward
:vimgrep /my_search_term/ **/*.c Recursively search all .c files
:cnext Jump to next hit
:clist Show hits
:cc n Jump to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Movement</strong><br />
<code>f,F</code> Find char, find char backwards<br />
<code>;</code> Repeat last find<br />
<code>zL</code> Scroll half a screenwidth to the left</p>
<p><strong>Copy and paste</strong><br />
<code>"ay</code> Copy visual selection to register A<br />
<code>"ap</code> Paste from register A</p>
<p><strong>Mark</strong><br />
<code>ma</code> Set mark &#8220;a&#8221;<br />
<code>'a</code> Go to mark &#8220;a&#8221;</p>
<p><strong>Searching</strong></p>
<p><code>/</code> Search forward<br />
<code>? </code>Search backward</p>
<p><code>:vimgrep /my_search_term/ **/*.c </code>Recursively search all .c files<br />
<code>:cnext </code>Jump to next hit<br />
<code>:clist </code>Show hits<code><br />
:cc n </code>Jump to hit no. <em>n</em>:</p>
<p><strong>Replace</strong><br />
<code>:%s/search/replace/g </code><br />
%s whole file (range)<br />
/g replace every instance</p>
<p><strong>Tab / window management</strong><br />
Open one tab for each buffer in the buffer list<br />
<code>:tab ball</code></p>
<p>Enable tab-completion window:<br />
<code>:set wildmenu</code></p>
<p>Close (split) window:<br />
<code>Ctrl+W C</code></p>
<p>Previous / next tab:<br />
<code>Ctrl+PgDn / Ctrl+PgUp</code></p>
<p>Create / close  tab:<br />
<code>Ctrl+Ins / Ctrl+Del</code><br />
&#8230; via mappings created using the following line in .vimrc:<br />
<code>nmap &lt;C-Insert&gt; :tabnew&lt;CR&gt;<br />
nmap &lt;C-Delete&gt; :tabclose&lt;CR&gt;</code></p>
<p><strong>Folds</strong><br />
<code>zo/O</code> Open one/all folds under cursor<br />
<code>zc/C</code> Close one/all folds under cursor<br />
<code>zR</code> Open all folds</p>
<p><strong>Color</strong><br />
<a href="http://www.frexx.de/xterm-256-notes/">xterm 256 notes</a></p>
<p><strong>Misc</strong><br />
Reindex help (after plugin installation):<br />
<code>:helptags C:\Program Files\Vim\vimfiles\doc</code></p>
<p><strong>Add/remove CRLF</strong><br />
To remove all carriage-returns at end-of-line:</p>
<p><code>:set fileformats=<br />
:e ++ff=dos filename<br />
:setlocal ff=unix<br />
:w</code></p>
<p>To repair any lines where a CR is missing, (by adding it):<br />
same as above, but omit the line with &#8220;:setlocal ff=unix&#8221;.</p>
<p><strong>Whitespace</strong><br />
<code>:set list</code> Show whitespaces<br />
<code>:set nolist</code> Stop showing whitespaces<br />
<code>:set expandtab</code> Insert space characters whenever the tab key is pressed<br />
<code>:set tabstop=2</code> Each tab = 2 spaces<br />
<code>:retab</code> Change all the existing tab characters to match the current tab settings (expandtab)</p>
<p><strong>Links</strong><br />
<a href="http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl">VIM FAQ</a><br />
<a href="http://vim.wikia.com/wiki/Working_with_Unicode">Working with Unicode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://papillon.nwnx.org/index.php/archives/29/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Notes on VirtualBox</title>
		<link>http://papillon.nwnx.org/index.php/archives/30</link>
		<comments>http://papillon.nwnx.org/index.php/archives/30#comments</comments>
		<pubDate>Fri, 26 Jun 2009 08:49:35 +0000</pubDate>
		<dc:creator>papillon</dc:creator>
				<category><![CDATA[Cheatsheet]]></category>

		<guid isPermaLink="false">http://papillon.nwnx.org/index.php/archives/30</guid>
		<description><![CDATA[List VMs
VBoxManage list vms
Disable time synchronisation
VBoxManage setextradata &#60;vmname&#62; “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″
]]></description>
			<content:encoded><![CDATA[<p><strong>List VMs</strong><br />
VBoxManage list vms</p>
<p><strong>Disable time synchronisation</strong><br />
VBoxManage setextradata &lt;vmname&gt; “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″</p>
]]></content:encoded>
			<wfw:commentRss>http://papillon.nwnx.org/index.php/archives/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
