<?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: No namespace indent for C++ with Vim</title>
	<atom:link href="http://www.derekwyatt.org/2009/08/23/no-namespace-indent-for-c-with-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derekwyatt.org/2009/08/23/no-namespace-indent-for-c-with-vim/</link>
	<description>Vim... and stuff</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:22:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Leandro</title>
		<link>http://www.derekwyatt.org/2009/08/23/no-namespace-indent-for-c-with-vim/comment-page-1/#comment-1468</link>
		<dc:creator>Leandro</dc:creator>
		<pubDate>Tue, 30 Mar 2010 21:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2009/08/23/no-namespace-indent-for-c-with-vim/#comment-1468</guid>
		<description>This is exactly what I need, but unfortunately it is not working here. :-(

Analyzing your code, I couldn&#039;t figure out what does &#039;^\s*\\s\+\S\+&#039; match after the beginning of the line (&#039;^&#039;) and blanks (&#039;\s*&#039;). Apparently the next 5 chars (&#039;\\s\+&#039;) evaluates to another regex (&#039;\s+&#039;) but I don&#039;t see the point. The tail of the string then matches one non blank char (&#039;\S+&#039;) and the last part escapes a plus sign. If I&#039;m right, the string on the next line would match (ignoring the &#039;^&#039; which indicates the beginning of the line):
^      \s+a+

Like I said before, I don&#039;t see where it takes. Could you give me a light?

Thanks in advance for your attention.

Regards,
Leandro</description>
		<content:encoded><![CDATA[<p>This is exactly what I need, but unfortunately it is not working here. :-(</p>
<p>Analyzing your code, I couldn&#8217;t figure out what does &#8216;^\s*\\s\+\S\+&#8217; match after the beginning of the line (&#8216;^&#8217;) and blanks (&#8216;\s*&#8217;). Apparently the next 5 chars (&#8216;\\s\+&#8217;) evaluates to another regex (&#8216;\s+&#8217;) but I don&#8217;t see the point. The tail of the string then matches one non blank char (&#8216;\S+&#8217;) and the last part escapes a plus sign. If I&#8217;m right, the string on the next line would match (ignoring the &#8216;^&#8217; which indicates the beginning of the line):<br />
^      \s+a+</p>
<p>Like I said before, I don&#8217;t see where it takes. Could you give me a light?</p>
<p>Thanks in advance for your attention.</p>
<p>Regards,<br />
Leandro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Jarvis</title>
		<link>http://www.derekwyatt.org/2009/08/23/no-namespace-indent-for-c-with-vim/comment-page-1/#comment-246</link>
		<dc:creator>Mike Jarvis</dc:creator>
		<pubDate>Fri, 16 Oct 2009 19:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2009/08/23/no-namespace-indent-for-c-with-vim/#comment-246</guid>
		<description>This is great.  Thanks!

The other C++ thing that I think vim gets wrong is indenting the line after template.  I&#039;d like the intent to look like:

template &lt;typename T&gt;
T foo(T x);

But vim indents the second line.  The only workaround I had found was to add +0 to cinoptions, but that has other undesirable side effects.  

Your function for (not) indenting namespace blocks might give me enough of a starting point to extend it to get the indent right for these lines as well.

Peace,
Mike</description>
		<content:encoded><![CDATA[<p>This is great.  Thanks!</p>
<p>The other C++ thing that I think vim gets wrong is indenting the line after template.  I&#8217;d like the intent to look like:</p>
<p>template &lt;typename T&gt;<br />
T foo(T x);</p>
<p>But vim indents the second line.  The only workaround I had found was to add +0 to cinoptions, but that has other undesirable side effects.  </p>
<p>Your function for (not) indenting namespace blocks might give me enough of a starting point to extend it to get the indent right for these lines as well.</p>
<p>Peace,<br />
Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

