<?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>david winter &#187; gvim</title>
	<atom:link href="http://davidwinter.me.uk/articles/tag/gvim/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidwinter.me.uk</link>
	<description>you were expecting someone else?</description>
	<lastBuildDate>Sun, 22 Aug 2010 20:51:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>vim: find, comment, save and quit</title>
		<link>http://davidwinter.me.uk/articles/2008/02/29/vim-find-comment-save-and-quit/</link>
		<comments>http://davidwinter.me.uk/articles/2008/02/29/vim-find-comment-save-and-quit/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 19:08:58 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gvim]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2008/02/29/vim-find-comment-save-and-quit/</guid>
		<description><![CDATA[For the last month, I&#8217;ve been teaching myself vim. So here&#8217;s an explanation for anyone interested in the commands I used for this post. /fd0 I # &#60;esc&#62; :wq Upon opening the file, I used the / command to search for &#8216;fd0&#8242; in the file. In command mode, you just type a forward slash, and [...]]]></description>
			<content:encoded><![CDATA[<p>For the last month, I&#8217;ve been teaching myself <code>vim</code>. So here&#8217;s an explanation for anyone interested in the commands I used for <a href="http://davidwinter.me.uk/articles/2008/02/29/remove-floppy-icon-from-gnome/">this post</a>.</p>

<p><span id="more-91"></span></p>

<pre><code>/fd0
I
#
&lt;esc&gt;
:wq
</code></pre>

<p>Upon opening the file, I used the <code>/</code> command to search for &#8216;fd0&#8242; in the file. In command mode, you just type a forward slash, and then the characters to search for straight after it. Hit enter, and it&#8217;ll give you the first result.</p>

<p>Next up, I want to insert a comment on that line. Because searching left me a few characters from the start of the line&#8211;where I want to have the comment&#8211;I enter <em>insert</em> mode with a capital <code>I</code>. This puts the cursor at the start of the current line. I then put in my <code>#</code> to comment the line, hit escape to get me back to command mode and then saved and quit the file with <code>:wq</code>.</p>

<p>I&#8217;m finding vim a lot friendlier to work with than emacs. It&#8217;s not quite TextMate yet, but I&#8217;m finding it rewarding learning all these different commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/02/29/vim-find-comment-save-and-quit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
