<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Fix Python source code to use spaces instead of tabs</title>
	<atom:link href="http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs</link>
	<description>Thoughts without walls</description>
	<lastBuildDate>Mon, 23 Jan 2012 16:49:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Ken Arnold</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-483</link>
		<dc:creator>Ken Arnold</dc:creator>
		<pubDate>Mon, 08 Dec 2008 19:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-483</guid>
		<description>Also check out reindent (http://pypi.python.org/pypi/Reindent/0.1.0). Can run on a whole directory tree at once, and fixes inconsistent indentation.</description>
		<content:encoded><![CDATA[<p>Also check out reindent (<a href="http://pypi.python.org/pypi/Reindent/0.1.0" rel="nofollow">http://pypi.python.org/pypi/Reindent/0.1.0</a>). Can run on a whole directory tree at once, and fixes inconsistent indentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swaroop C H</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-482</link>
		<dc:creator>Swaroop C H</dc:creator>
		<pubDate>Mon, 08 Dec 2008 12:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-482</guid>
		<description>Just for completeness sake, this can be done in Vim using:

:set tabstop=4 &quot; set spacing of 4
:set expandtab &quot; instruct to expand tabs to spaces
:1,$retab! &quot; replace existing tabs with spaces in the whole file</description>
		<content:encoded><![CDATA[<p>Just for completeness sake, this can be done in Vim using:</p>
<p>:set tabstop=4 &#8221; set spacing of 4<br />
:set expandtab &#8221; instruct to expand tabs to spaces<br />
:1,$retab! &#8221; replace existing tabs with spaces in the whole file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hachaboob</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-481</link>
		<dc:creator>hachaboob</dc:creator>
		<pubDate>Mon, 08 Dec 2008 11:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-481</guid>
		<description>Why would anyone untab stuff? Tabs are the best.</description>
		<content:encoded><![CDATA[<p>Why would anyone untab stuff? Tabs are the best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Lopes</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-480</link>
		<dc:creator>Richard Lopes</dc:creator>
		<pubDate>Mon, 08 Dec 2008 05:17:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-480</guid>
		<description>Hi,

And what if you prefer tab formatted files ;-) ?
Is there an equivalent to translate spaces into tabs ?
Nowadays you can define how much spaces a tab translates into in your favourite editor.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>And what if you prefer tab formatted files <img src='http://www.pkshiu.com/loft/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ?<br />
Is there an equivalent to translate spaces into tabs ?<br />
Nowadays you can define how much spaces a tab translates into in your favourite editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Poulton</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-479</link>
		<dc:creator>Ross Poulton</dc:creator>
		<pubDate>Mon, 08 Dec 2008 04:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-479</guid>
		<description>Doh! Formatting messed that up.

Try:

:%s/^V^I/    /g

Again, just 4 spaces between the 2nd and 3rd slashes.</description>
		<content:encoded><![CDATA[<p>Doh! Formatting messed that up.</p>
<p>Try:</p>
<p>:%s/^V^I/    /g</p>
<p>Again, just 4 spaces between the 2nd and 3rd slashes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Poulton</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-478</link>
		<dc:creator>Ross Poulton</dc:creator>
		<pubDate>Mon, 08 Dec 2008 04:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-478</guid>
		<description>FWIW, to do that in vim you would use the command:

:%s//    /g

Instead of typing , just press the &#039;tab&#039; key (or press ^V^I) . The bit between the 2nd and 3rd &#039;/&#039; marks is just 4 spaces.</description>
		<content:encoded><![CDATA[<p>FWIW, to do that in vim you would use the command:</p>
<p>:%s//    /g</p>
<p>Instead of typing , just press the &#8216;tab&#8217; key (or press ^V^I) . The bit between the 2nd and 3rd &#8216;/&#8217; marks is just 4 spaces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-477</link>
		<dc:creator>AJ</dc:creator>
		<pubDate>Mon, 08 Dec 2008 04:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-477</guid>
		<description>If you have access to command-line programs in the Unix tradition, the one that expands out tabs is called &#039;expand&#039; and has an option -t to set the tab-width (or it may specify an explicit list of the tab stop columns to use instead).</description>
		<content:encoded><![CDATA[<p>If you have access to command-line programs in the Unix tradition, the one that expands out tabs is called &#8216;expand&#8217; and has an option -t to set the tab-width (or it may specify an explicit list of the tab stop columns to use instead).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Battcher</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-476</link>
		<dc:creator>Max Battcher</dc:creator>
		<pubDate>Mon, 08 Dec 2008 04:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-476</guid>
		<description>Oh, and in my experience in Vim :set et! will retab the document, but there is also the :retab command to explicitly do that as well.</description>
		<content:encoded><![CDATA[<p>Oh, and in my experience in Vim :set et! will retab the document, but there is also the :retab command to explicitly do that as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Battcher</title>
		<link>http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs/comment-page-1#comment-475</link>
		<dc:creator>Max Battcher</dc:creator>
		<pubDate>Mon, 08 Dec 2008 04:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/12/fix-python-source-code-to-use-spaces-instead-of-tabs#comment-475</guid>
		<description>In Vim:

:set ts=4
:set et!

You can also use the long names tabstop and expand-tab.  You may also want to update shiftwidth (sw) and soft tabstop (sts) to the same value as you choose for tabstop.</description>
		<content:encoded><![CDATA[<p>In Vim:</p>
<p>:set ts=4<br />
:set et!</p>
<p>You can also use the long names tabstop and expand-tab.  You may also want to update shiftwidth (sw) and soft tabstop (sts) to the same value as you choose for tabstop.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

