<?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>Zulius &#187; vim</title>
	<atom:link href="http://www.zulius.com/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulius.com</link>
	<description>Advanced Application Development</description>
	<lastBuildDate>Mon, 30 Aug 2010 20:44:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get numlock working with PuTTY and vim</title>
		<link>http://www.zulius.com/how-to/get-numlock-working-with-putty-and-vim/</link>
		<comments>http://www.zulius.com/how-to/get-numlock-working-with-putty-and-vim/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 08:34:45 +0000</pubDate>
		<dc:creator>Tim White</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.zulius.com/?p=643</guid>
		<description><![CDATA[By default, your keyboard's numlock enabled number pad doesn't work well with console applications running on a PuTTY SSH connection.  The numpad's numbers seem to get mapped to inserting the characters "q" thru "y".  This is especially annoying when using vim.
To get numlock working, open PuTTY's configuration window, goto Terminal > Features.  [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 170px"><img alt="PuTTY" src="/img/blog/putty-vim-numpad/puttyTitleImage.jpg" title="PuTTY" width="150" height="110" /><p class="wp-caption-text">PuTTY</p></div>
<p>By default, your keyboard's numlock enabled number pad doesn't work well with console applications running on a PuTTY SSH connection.  The numpad's numbers seem to get mapped to inserting the characters "q" thru "y".  This is especially annoying when using vim.</p>
<p>To get numlock working, open PuTTY's configuration window, goto <b>Terminal > Features</b>.  Enable the "Disable application keypad mode" checkbox.</p>
<p>  If you want this setting to persist, make sure to select a saved session and click "Save".</p>
<p style="padding: 15px 0 0 0"><img class="alignnone" src="/img/blog/putty-vim-numpad/terminal-features.jpg" alt="Putty Configuration" /></p>
<img src="http://www.zulius.com/blog/?ak_action=api_record_view&id=643&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.zulius.com/how-to/get-numlock-working-with-putty-and-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skip .svn directories when using grep</title>
		<link>http://www.zulius.com/how-to/grep-skip-svn-directories/</link>
		<comments>http://www.zulius.com/how-to/grep-skip-svn-directories/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:56:08 +0000</pubDate>
		<dc:creator>Tim White</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.zulius.com/?p=383</guid>
		<description><![CDATA[What You'll Need: grep 2.5.3+

I can't count how many times a day I use grep.  It is an indispensable tool for searching the contents of configuration files, data files, and source code.
One of the annoying side effects of grep is when searching a Subversion working copy recursively, all the hidden .svn directories also get [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 158px"><img alt="grep returns .svn metadata" src="/img/blog/title-image-grepSkipSvn.jpg" title="grep returns .svn metadata" width="148" height="110" /><p class="wp-caption-text">grep returns .svn metadata files</p></div>
<p><strong>What You'll Need:</strong><br /> <a href="http://www.gnu.org/software/grep/">grep 2.5.3+</a>
</p>
<p>I can't count how many times a day I use grep.  It is an indispensable tool for searching the contents of configuration files, data files, and source code.</p>
<p>One of the annoying side effects of grep is when searching a Subversion working copy recursively, all the hidden .svn directories also get searched.  This can yield a lot of false positive matches since these directories contain <a href="http://svn.collab.net/repos/svn/trunk/doc/user/svn-best-practices.html">"pristine copies of all version-controlled files"</a>.</p>
<p>If you've got grep 2.5.3 or higher, it's easy to ignore .svn directories with the "--exclude-dir" option:</p>
<pre class="brush: plain;">$ grep -r --exclude-dir='.svn' 'my search string' /some/directory</pre>
<p>But that's a lot to type in each time you want to search your source code.  To save keystrokes, try setting up an alias in your home directory's .bashrc file that utilizes the --exclude-dir option (for Mac, use your home directory's .profile file.).  I call mine <strong>devgrep</strong>:</p>
<pre class="brush: plain;">alias devgrep=&quot;grep --exclude-dir='.svn'&quot;</pre>
<p>After adding the alias, don't forget to source your .bashrc:</p>
<pre class="brush: plain;">$ source ~/.bashrc</pre>
<p>Now whenever you need to search a Subversion working copy recursively, use the new alias to skip .svn directories:</p>
<pre class="brush: plain;">$ devgrep -rin 'doctype' /var/www/html/templates
./foo.tpl:1:&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
./bar.tpl:1:&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
./baz.phtml:1:&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot; &quot;http://www.w3.org/TR/html4/frameset.dtd&quot;&gt;</pre>
<p>You can also exclude file types when grep'ing.  If you're a vim user, it can be helpful to skip .swp files in your alias:</p>
<pre class="brush: plain;">alias devgrep=&quot;grep --exclude-dir='.svn' --exclude='*.swp'&quot;</pre>
<p>Yet another workaround would be to use <a href="http://betterthangrep.com/">ack</a> - a Perl based, juiced up version of grep with a lot more features.</p>
<img src="http://www.zulius.com/blog/?ak_action=api_record_view&id=383&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.zulius.com/how-to/grep-skip-svn-directories/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quickly indent multiple lines in vi/vim</title>
		<link>http://www.zulius.com/how-to/quickly-indent-multiple-lines-vi-vim/</link>
		<comments>http://www.zulius.com/how-to/quickly-indent-multiple-lines-vi-vim/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 02:25:50 +0000</pubDate>
		<dc:creator>Tim White</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.zulius.com/wordpress/?p=63</guid>
		<description><![CDATA[Indenting lines of programming code is essential for readability.  Indenting multiple lines at once is a feature that any useful code editing software should have.
As a programmer, I went far too long not knowing how to do this with vim (one of my favorite editors).  It's so easy, even Mike Tyson could do [...]]]></description>
			<content:encoded><![CDATA[<p>Indenting lines of programming code is essential for readability.  Indenting multiple lines at once is a feature that any useful code editing software should have.</p>
<p>As a programmer, I went far too long not knowing how to do this with <a href="http://www.vim.org/">vim</a> (one of my favorite editors).  It's so easy, even Mike Tyson could do it.  And he never learned to read.</p>
<ol style="bold">
<li>Enter VISUAL LINE mode by holding [SHIFT] and hitting the "v" key.</li>
<li>Use the arrow keys or "j" and "k" to select the lines you want to indent.</li>
<li>Hit the "&gt;" character (hold [SHIFT] and hit the "." key) to indent.  </li>
</ol>
<p>Then, you can repeat the indent using the "." key.  Likewise, you can type the "&lt;" character to outdent the selected lines.</p>
<img src="http://www.zulius.com/blog/?ak_action=api_record_view&id=63&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.zulius.com/how-to/quickly-indent-multiple-lines-vi-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
