<?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; vim</title>
	<atom:link href="http://davidwinter.me.uk/articles/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidwinter.me.uk</link>
	<description>you were expecting someone else?</description>
	<lastBuildDate>Mon, 28 Jun 2010 20:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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>
		<item>
		<title>GDM Login Screen Resolution Too Big</title>
		<link>http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/</link>
		<comments>http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 10:06:39 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/</guid>
		<description><![CDATA[If you&#8217;ve noticed that the login screen for Ubuntu Gutsy (GDM) is too big, and that you can use the mouse to move the screen around, you&#8217;ll need to update your xorg.conf file. sudo gvim /etc/X11/xorg.conf When gVim opens, type in the following: /Virtual Then hit enter. That&#8217;ll search the file for the line that [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve noticed that the login screen for Ubuntu Gutsy (GDM) is too big, and that you can use the mouse to move the screen around, you&#8217;ll need to update your <code>xorg.conf</code> file.</p>

<pre><code>sudo gvim /etc/X11/xorg.conf
</code></pre>

<p>When gVim opens, type in the following:</p>

<pre><code>/Virtual
</code></pre>

<p>Then hit enter. That&#8217;ll search the file for the line that we need to comment out. When it&#8217;s found, hit <code>i</code> on the keyboard to enter the Insert mode of gVim. Now prepend a <code>#</code> before the <code>Virtual</code> keyword to comment out the entire line.</p>

<p>Hit escape on the keyboard, then type in <code>:wq</code> to save and quit.</p>

<p>Next time you have the login screen in front of you, it should be using the correct screen resolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
