<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

	<channel>
	 
		<title>Matt Tarbit's Weblog</title> 
		<link>http://matt.tarbit.org/</link>
		<description>Matt Tarbit's Weblog</description>
		<language>en</language>
		<atom:link href="http://matt.tarbit.org/rss" rel="self" type="application/rss+xml" />
	
					<item>
	<title>Bookmark for &quot;Markus 'Notch' Persson Talks Making Minecraft&quot;</title>
	<link>http://matt.tarbit.org/2011/08/28/markus-notch-persson</link>
	<guid>http://matt.tarbit.org/2011/08/28/markus-notch-persson</guid>
	<description>
		
		&lt;a href=&quot;http://www.gamasutra.com/view/news/27719/Interview_Markus_Notch_Persson_Talks_Making_Minecraft.php&quot;&gt;Markus 'Notch' Persson Talks Making Minecraft.&lt;/a&gt;
		Nice content-ful Gamasutra interview from last year.
        
	</description>
	<pubDate>Sun, 28 Aug 2011 09:28:01 +0000</pubDate>
</item>

					<item>
	<title>Bookmark for &quot;How to Never Miss a Blog Post&quot;</title>
	<link>http://matt.tarbit.org/2011/08/23/how-to-never</link>
	<guid>http://matt.tarbit.org/2011/08/23/how-to-never</guid>
	<description>
		
		&lt;a href=&quot;http://nathanbarry.com/how-to-never-miss-a-blog-post/&quot;&gt;How to Never Miss a Blog Post.&lt;/a&gt;
		Nice way to trick yourself into posting more regularly.
        
	</description>
	<pubDate>Tue, 23 Aug 2011 15:12:00 +0000</pubDate>
</item>

					<item>
	<title>Bookmark for &quot;Advanced Bash-Scripting Guide&quot;</title>
	<link>http://matt.tarbit.org/2011/08/16/advanced-bashscripting-guide</link>
	<guid>http://matt.tarbit.org/2011/08/16/advanced-bashscripting-guide</guid>
	<description>
		
		&lt;a href=&quot;http://tldp.org/LDP/abs/html/&quot;&gt;Advanced Bash-Scripting Guide.&lt;/a&gt;
		Have been looking for something like this since watching Ryan Tomayko's Shell Hater's Handbook talk. (Update: Actually pretty sloppy and inaccurate. Give it a miss.)
        
	</description>
	<pubDate>Tue, 16 Aug 2011 20:07:54 +0000</pubDate>
</item>

					<item>
	<title>Toggling relative line-numbering in Vim</title>
	<link>http://matt.tarbit.org/2011/07/30/toggling-relative-linenumbering</link>
	<guid>http://matt.tarbit.org/2011/07/30/toggling-relative-linenumbering</guid>
	<description>&lt;p&gt;With the recent release of Lion, OS X users get access to the latest version of Vim. That includes the new relative line-numbering feature which looks particularly useful given Vim's many line-wise operations (see &lt;code&gt;:help relativenumber&lt;/code&gt; for details).&lt;/p&gt;

&lt;p&gt;However, it might not be something you want on all the time. Absolute line-numbering is useful in debugging and for providing context, and relative line-numbering could be slightly distracting given that it changes as you move around. So, you might want to toggle between the two modes.&lt;/p&gt;

&lt;p&gt;Toggling between absolute and relative isn't as simple as &lt;code&gt;:set relativenumber!&lt;/code&gt; though, because &lt;code&gt;norelativenumber&lt;/code&gt; just turns off line-numbering rather than falling back to &lt;code&gt;number&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So here's one way of handling things. First set your default numbering:&lt;/p&gt;

&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; exists&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;+relativenumber&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; relativenumber
&lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;number&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;endif&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add a function to toggle between the two modes:&lt;/p&gt;

&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;!&lt;/span&gt; ToggleNumbering&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; exists&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;+relativenumber&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &amp;amp;relativenumber
            &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;number&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; relativenumber
        &lt;span class=&quot;k&quot;&gt;endif&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;number&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;!&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;endif&lt;/span&gt;
endfunc
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If the option isn't available, e.g. you're on a version earlier than 7.3, it falls back to toggling line-numbering on or off. If you were so inclined, you could do a version that cycled between the 3 possible states (off, absolute and relative), but I prefer it like this.&lt;/p&gt;

&lt;p&gt;Finally, map a keyboard shortcut  to trigger the function:&lt;/p&gt;

&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;noremap&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;leader&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;n&lt;/span&gt; :&lt;span class=&quot;k&quot;&gt;call&lt;/span&gt; ToggleNumbering&lt;span class=&quot;p&quot;&gt;()&amp;lt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;cr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I use &lt;code&gt;&amp;lt;leader&amp;gt;&lt;/code&gt; mappings a lot for my own personal shortcuts, but a lot of people seem to prefer the function keys. You can replace &lt;code&gt;&amp;lt;leader&amp;gt;n&lt;/code&gt; with &lt;code&gt;&amp;lt;f12&amp;gt;&lt;/code&gt; or whatever if that includes you.&lt;/p&gt;

&lt;p&gt;Paste that lot into your &lt;code&gt;.vimrc&lt;/code&gt; and continue on your merry way.&lt;/p&gt;</description>
	<pubDate>Sat, 30 Jul 2011 12:30:31 +0000</pubDate>
</item>

					<item>
	<title>Bookmark for &quot;Chasing a Sound in your Head&quot;</title>
	<link>http://matt.tarbit.org/2011/06/11/chasing-a-sound</link>
	<guid>http://matt.tarbit.org/2011/06/11/chasing-a-sound</guid>
	<description>
		
		&lt;a href=&quot;http://blog.thoughtwax.com/2010/07/chasing-a-sound-in-your-head&quot;&gt;Chasing a Sound in your Head.&lt;/a&gt;
		On the conflict between videogame realism and videogame conventions. Particularly in RDR and Rockstar's other sandbox games.
        
	</description>
	<pubDate>Sat, 11 Jun 2011 08:27:12 +0000</pubDate>
</item>

					<item>
	<title>It's alive!</title>
	<link>http://matt.tarbit.org/2011/05/29/its-alive</link>
	<guid>http://matt.tarbit.org/2011/05/29/its-alive</guid>
	<description>&lt;p&gt;Wheee, I thought this thing was permanently out of commission thanks to circumstances beyond my control, but it was fixable after all. I was this close to replacing it with one of those single-page placeholder sites.&lt;/p&gt;

&lt;p&gt;Anyway. Fear ye, fear ye. I have returned.&lt;/p&gt;</description>
	<pubDate>Sun, 29 May 2011 10:49:10 +0000</pubDate>
</item>

					<item>
	<title>Bookmark for &quot;GNU Hello&quot;</title>
	<link>http://matt.tarbit.org/2011/02/22/gnu-hello</link>
	<guid>http://matt.tarbit.org/2011/02/22/gnu-hello</guid>
	<description>
		
		&lt;a href=&quot;http://www.gnu.org/s/hello/&quot;&gt;GNU Hello.&lt;/a&gt;
		A sample &quot;hello, world&quot; project from the GNU foundation as a demonstration of best practices.
        
	</description>
	<pubDate>Tue, 22 Feb 2011 21:37:24 +0000</pubDate>
</item>

					<item>
	<title>Bookmark for &quot;C-REPL&quot;</title>
	<link>http://matt.tarbit.org/2011/02/22/crepl</link>
	<guid>http://matt.tarbit.org/2011/02/22/crepl</guid>
	<description>
		
		&lt;a href=&quot;http://news.ycombinator.com/item?id=862396&quot;&gt;C-REPL.&lt;/a&gt;
		Hacker news thread on interactive interpreters for the C programming language. Other examples mentioned in the comments, such as cint and ccons.
        
	</description>
	<pubDate>Tue, 22 Feb 2011 21:33:53 +0000</pubDate>
</item>

					<item>
	<title>Bookmark for &quot;fish&quot;</title>
	<link>http://matt.tarbit.org/2011/02/22/fish</link>
	<guid>http://matt.tarbit.org/2011/02/22/fish</guid>
	<description>
		
		&lt;a href=&quot;http://fishshell.com/&quot;&gt;fish.&lt;/a&gt;
		The &quot;friendly interactive shell&quot;. Full of interesting ideas but sadly abandoned, riddled with bugs and fundamental flaws. Such a shame.
        
	</description>
	<pubDate>Tue, 22 Feb 2011 21:30:29 +0000</pubDate>
</item>

					<item>
	<title>A quote from Ned Batchelder</title>
	<link>http://matt.tarbit.org/2010/11/03/ned-batchelder</link>
	<guid>http://matt.tarbit.org/2010/11/03/ned-batchelder</guid>
	<description>
		&#8220;...why does Python have an adjective, when other languages do not? We don't hear about code being Javanese, or Pearly, or Rubinesque. Why don't we speak of code that is C-plush-plush, or PHPleasing?&#8221;
		- &lt;a href=&quot;http://nedbatchelder.com/blog/201011/pythonic.html&quot;&gt;Ned Batchelder&lt;/a&gt;
	</description>
	<pubDate>Wed, 03 Nov 2010 14:59:25 +0000</pubDate>
</item>

		 
	
	</channel> 

</rss>

