<?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>Mike&#039;s Blabberings &#187; vim</title>
	<atom:link href="http://www.mike-griffith.com/blog/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mike-griffith.com/blog</link>
	<description>on software, testing, and the web.</description>
	<lastBuildDate>Tue, 29 Jun 2010 14:37:52 +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>VIM Tip of the Day: leave python comments indented, don&#8217;t put cursor at beginning of the line</title>
		<link>http://www.mike-griffith.com/blog/2009/05/vim-tip-of-the-day-leave-python-comments-indented-dont-put-cursor-at-beginning-of-the-line/</link>
		<comments>http://www.mike-griffith.com/blog/2009/05/vim-tip-of-the-day-leave-python-comments-indented-dont-put-cursor-at-beginning-of-the-line/#comments</comments>
		<pubDate>Fri, 15 May 2009 17:18:32 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[software development]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.mike-griffith.com/blog/?p=305</guid>
		<description><![CDATA[If you&#8217;re ever been annoyed by VIM throwing your cursor to the left margin when you type &#8220;#&#8221; in a python file, there&#8217;s a simple remedy.  It&#8217;s the fault of &#8220;smartindent&#8221; in VIM, which in reality isn&#8217;t all that smart.  If you want to leave smartindent on but fix the weird hash behavior, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re ever been annoyed by VIM throwing your cursor to the left margin when you type &#8220;#&#8221; in a python file, there&#8217;s a simple remedy.  It&#8217;s the fault of &#8220;smartindent&#8221; in VIM, which in reality isn&#8217;t all that smart.  If you want to leave smartindent on but fix the weird hash behavior, throw the following in your $HOME/.vimrc.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">:inoremap # X&lt;C-H&gt;#</pre></div></div>

<p>See <a href="http://vim.wikia.com/wiki/Restoring_indent_after_typing_hash">http://vim.wikia.com/wiki/Restoring_indent_after_typing_hash</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mike-griffith.com/blog/2009/05/vim-tip-of-the-day-leave-python-comments-indented-dont-put-cursor-at-beginning-of-the-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
