<?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: Vim customization for python</title>
	<atom:link href="http://www.cmdln.org/2008/10/18/vim-customization-for-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/</link>
	<description>a system administrators mutterings</description>
	<lastBuildDate>Sun, 28 Feb 2010 09:28:06 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Johnathan</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-875</link>
		<dc:creator>Johnathan</dc:creator>
		<pubDate>Tue, 05 May 2009 02:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-875</guid>
		<description>The indent/python.vim file&#039;s handling of comments is fine, actually. No need to edit it.

It&#039;s &lt;a href=&quot;http://www.vim.org/htmldoc/options.html#%27smartindent%27&quot; rel=&quot;nofollow&quot;&gt;smartindent&lt;/a&gt; that is messing the comments up, because it&#039;s meant for C-like languages and assumes &#039;#&#039; is the beginning of a preprocesser instruction. smartindent is really only meant to be used if you don&#039;t have a smart indentation file around, and with indent/python.vim you do! 

It really isn&#039;t adding anything you need either, it just does some not-quite pythonic indentation around &#039;{&#039; and &#039;}&#039;, and indentation after C keywords like &#039;switch&#039; or &#039;do&#039;, all of which is getting overridden by the python indent file. The only thing smartindent is still doing is messing up lines starting with &#039;#&#039;. Even after editing the indent file in the manner you suggest, I suspect smartindent will still stop you from being able to move comments to the right with &#039;&gt;&gt;&#039;.

So just don&#039;t use smartindent on python files. Change the last line of python_pep8.vim to be &quot;setlocal nosmartindent&quot; and your indentation should still be just as automatic and pretty much exactly the same, just without messed up comment indentation.</description>
		<content:encoded><![CDATA[<p>The indent/python.vim file&#8217;s handling of comments is fine, actually. No need to edit it.</p>
<p>It&#8217;s <a href="http://www.vim.org/htmldoc/options.html#%27smartindent%27" rel="nofollow">smartindent</a> that is messing the comments up, because it&#8217;s meant for C-like languages and assumes &#8216;#&#8217; is the beginning of a preprocesser instruction. smartindent is really only meant to be used if you don&#8217;t have a smart indentation file around, and with indent/python.vim you do! </p>
<p>It really isn&#8217;t adding anything you need either, it just does some not-quite pythonic indentation around &#8216;{&#8216; and &#8216;}&#8217;, and indentation after C keywords like &#8217;switch&#8217; or &#8216;do&#8217;, all of which is getting overridden by the python indent file. The only thing smartindent is still doing is messing up lines starting with &#8216;#&#8217;. Even after editing the indent file in the manner you suggest, I suspect smartindent will still stop you from being able to move comments to the right with &#8216;&gt;&gt;&#8217;.</p>
<p>So just don&#8217;t use smartindent on python files. Change the last line of python_pep8.vim to be &#8220;setlocal nosmartindent&#8221; and your indentation should still be just as automatic and pretty much exactly the same, just without messed up comment indentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lonecat</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-874</link>
		<dc:creator>lonecat</dc:creator>
		<pubDate>Fri, 01 May 2009 18:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-874</guid>
		<description>Great post. I&#039;m not that much into python, but I&#039;ve grown my vim to be a (Cookie) Monster :D. Have you tried NERD_snippets and NERD_tree? check this out: http://github.com/jfgomez86/vimfiles</description>
		<content:encoded><![CDATA[<p>Great post. I&#8217;m not that much into python, but I&#8217;ve grown my vim to be a (Cookie) Monster <img src='http://www.cmdln.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Have you tried NERD_snippets and NERD_tree? check this out: <a href="http://github.com/jfgomez86/vimfiles" rel="nofollow">http://github.com/jfgomez86/vimfiles</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Anderson</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-833</link>
		<dc:creator>Nick Anderson</dc:creator>
		<pubDate>Mon, 02 Mar 2009 02:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-833</guid>
		<description>I&#039;m glad you enjoyed it.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you enjoyed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radek</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-832</link>
		<dc:creator>Radek</dc:creator>
		<pubDate>Sun, 01 Mar 2009 22:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-832</guid>
		<description>Every time i come here I am not dissapointed, nice post</description>
		<content:encoded><![CDATA[<p>Every time i come here I am not dissapointed, nice post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frio</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-614</link>
		<dc:creator>frio</dc:creator>
		<pubDate>Mon, 03 Nov 2008 00:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-614</guid>
		<description>Followed your link here; certainly a far more comprehensive look at what you can do with Vim than my own!  Cheers, I&#039;m going to have to set this up :D (and then immediately regret it when I ssh to another box at work and realise I don&#039;t have a nice vim anymore :p).</description>
		<content:encoded><![CDATA[<p>Followed your link here; certainly a far more comprehensive look at what you can do with Vim than my own!  Cheers, I&#8217;m going to have to set this up <img src='http://www.cmdln.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  (and then immediately regret it when I ssh to another box at work and realise I don&#8217;t have a nice vim anymore :p).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cmdln</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-595</link>
		<dc:creator>cmdln</dc:creator>
		<pubDate>Mon, 20 Oct 2008 13:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-595</guid>
		<description>Ah thanks for pointing that out. It was an error. Clearing breakpoints is done with shift-f7</description>
		<content:encoded><![CDATA[<p>Ah thanks for pointing that out. It was an error. Clearing breakpoints is done with shift-f7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnar Birgisson</title>
		<link>http://www.cmdln.org/2008/10/18/vim-customization-for-python/comment-page-1/#comment-594</link>
		<dc:creator>Arnar Birgisson</dc:creator>
		<pubDate>Mon, 20 Oct 2008 09:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.cmdln.org/?p=83#comment-594</guid>
		<description>Very nice, thanks. One question: Under debugging you say you can clear breakpoints with F8 - but then you immediately suggest mapping F8 to run. Was that a mistake or do you really override the former?</description>
		<content:encoded><![CDATA[<p>Very nice, thanks. One question: Under debugging you say you can clear breakpoints with F8 &#8211; but then you immediately suggest mapping F8 to run. Was that a mistake or do you really override the former?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
