<?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: Search and Indent in Vim</title>
	<atom:link href="http://pthree.org/2007/05/04/search-and-indent-in-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Fri, 17 May 2013 20:46:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta2-24176</generator>
	<item>
		<title>By: Ben Hayes</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-110208</link>
		<dc:creator>Ben Hayes</dc:creator>
		<pubDate>Fri, 18 Sep 2009 15:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-110208</guid>
		<description><![CDATA[To format the indentation on the entire buffer just type gg=G and everything will get correctly indented. Much quicker!]]></description>
		<content:encoded><![CDATA[<p>To format the indentation on the entire buffer just type gg=G and everything will get correctly indented. Much quicker!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baby names search - Search for aaron</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-109964</link>
		<dc:creator>Baby names search - Search for aaron</dc:creator>
		<pubDate>Fri, 15 May 2009 06:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-109964</guid>
		<description><![CDATA[[...] Aaron Toponce : Search and Indent in Vim  reddit_url=&#039;http://www.baby-parenting.com/baby/search_babynames.php?babyname=aaron&amp;gender=Male&#039; reddit_title=&#039;Baby names search - Search for aaron&#039; [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Aaron Toponce : Search and Indent in Vim  reddit_url=&#8217;http://www.baby-parenting.com/baby/search_babynames.php?babyname=aaron&amp;gender=Male&#8217; reddit_title=&#8217;Baby names search &#8211; Search for aaron&#8217; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lisa</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-55516</link>
		<dc:creator>lisa</dc:creator>
		<pubDate>Wed, 06 Jun 2007 00:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-55516</guid>
		<description><![CDATA[I found that for me, it&#039;s sufficient (in cases) to repeat indent (==) very many times, such as, &lt;code&gt;99999==&lt;/code&gt;.  I hope that helps!]]></description>
		<content:encoded><![CDATA[<p>I found that for me, it&#8217;s sufficient (in cases) to repeat indent (==) very many times, such as,</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">99999==</div></td></tr></tbody></table></div>
<p>.  I hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Schroeder</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49948</link>
		<dc:creator>Jeff Schroeder</dc:creator>
		<pubDate>Sat, 05 May 2007 17:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49948</guid>
		<description><![CDATA[Thanks for the nice vi shortcuts. *, #, and especially % were new to me. 

Awesome!]]></description>
		<content:encoded><![CDATA[<p>Thanks for the nice vi shortcuts. *, #, and especially % were new to me. </p>
<p>Awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EvilDead</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49920</link>
		<dc:creator>EvilDead</dc:creator>
		<pubDate>Sat, 05 May 2007 10:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49920</guid>
		<description><![CDATA[Sorry, some parts of the map have been removed, it should be:

map &lt;silent&gt; &lt;F3&gt; :call ReformatFile()&lt;CR&gt;

gt and lt being angle brackets.]]></description>
		<content:encoded><![CDATA[<p>Sorry, some parts of the map have been removed, it should be:</p>
<p>map &lt;silent&gt; &lt;F3&gt; :call ReformatFile()&lt;CR&gt;</p>
<p>gt and lt being angle brackets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EvilDead</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49919</link>
		<dc:creator>EvilDead</dc:creator>
		<pubDate>Sat, 05 May 2007 10:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49919</guid>
		<description><![CDATA[Hi,

I&#039;m using the following map to reformat the whole buffer:

function! ReformatFile()
    exe &quot;normal msHmtgg&quot;
    exe &quot;normal ggVG=&quot;
    exe &quot;normal &#039;tzt`s&quot;
endfunction

map   :call ReformatFile()

The first and the third exe are used to save/restore the cursor position.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m using the following map to reformat the whole buffer:</p>
<p>function! ReformatFile()<br />
    exe &#8220;normal msHmtgg&#8221;<br />
    exe &#8220;normal ggVG=&#8221;<br />
    exe &#8220;normal &#8216;tzt`s&#8221;<br />
endfunction</p>
<p>map   :call ReformatFile()</p>
<p>The first and the third exe are used to save/restore the cursor position.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dtlin</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49914</link>
		<dc:creator>dtlin</dc:creator>
		<pubDate>Sat, 05 May 2007 08:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49914</guid>
		<description><![CDATA[Gah!  What happened to the formatting?

&gt;5&amp;&gt; will indent 5 lines, same as
&gt;4j (indent, plus four lines down)

As 4 says,
= reformats (:set equalprg to a custom indenter), which is also very handy.]]></description>
		<content:encoded><![CDATA[<p>Gah!  What happened to the formatting?</p>
<p>&gt;5&amp;&gt; will indent 5 lines, same as<br />
&gt;4j (indent, plus four lines down)</p>
<p>As 4 says,<br />
= reformats (:set equalprg to a custom indenter), which is also very handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dtlin</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49912</link>
		<dc:creator>dtlin</dc:creator>
		<pubDate>Sat, 05 May 2007 08:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49912</guid>
		<description><![CDATA[&lt;code&gt;&gt;5&gt;&lt;/code&gt; will indent 5 lines, same as
&lt;code&gt;&gt;4j&lt;/code&gt; (indent, plus four lines down)

As 4 says,
&lt;code&gt;=&lt;/code&gt;&lt;code&gt; reformats (&lt;/code&gt;&lt;code&gt;:set equalprg&lt;/code&gt; to a custom indenter), which is also very handy.]]></description>
		<content:encoded><![CDATA[<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt;5&amp;gt;</div></td></tr></tbody></table></div>
<p>will indent 5 lines, same as</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;gt;4j</div></td></tr></tbody></table></div>
<p>(indent, plus four lines down)</p>
<p>As 4 says,</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">=</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;reformats (</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">:set equalprg</div></td></tr></tbody></table></div>
<p>to a custom indenter), which is also very handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beza1e1</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49894</link>
		<dc:creator>beza1e1</dc:creator>
		<pubDate>Sat, 05 May 2007 07:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49894</guid>
		<description><![CDATA[You can use &quot;=&quot; to &quot;indent right&quot;. It&#039;s not as good as EMACS &quot;tab&quot;, though. To indent the whole file (well, buffer) correctly, you then use &quot;g=G&quot;. ;)]]></description>
		<content:encoded><![CDATA[<p>You can use &#8220;=&#8221; to &#8220;indent right&#8221;. It&#8217;s not as good as EMACS &#8220;tab&#8221;, though. To indent the whole file (well, buffer) correctly, you then use &#8220;g=G&#8221;. <img src='http://pthree.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49887</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sat, 05 May 2007 05:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49887</guid>
		<description><![CDATA[The &quot;%&quot; also works on #if/#else/#endif.  And when searching using &quot;#&quot;, &quot;*&quot;, or some other technique, you can use &quot;:set hlsearch={on&#124;off}&quot; to turn on/off visual highlighting of search terms.

If you want to reformat HTML or XML, first install &quot;xmllint&quot;.  Then from inside VIM, go to line 1 (&quot;1G&quot;) and type &quot;!Gxmllint --xmlout --format -&quot; and your current buffer will be replaced with a nicely formatted version. :)  Play with different options for formatting HTML instead of XML, for example.

I also use &quot;gf&quot; a lot (open the filename that the cursor is on), but it&#039;s helpful to add to your &quot;file search path&quot; using &quot;:set path+=newdir&quot;

I highly recommend that my students browser through the &quot;:help&quot; documents.  There is a HUGE amount of functionality there...]]></description>
		<content:encoded><![CDATA[<p>The &#8220;%&#8221; also works on #if/#else/#endif.  And when searching using &#8220;#&#8221;, &#8220;*&#8221;, or some other technique, you can use &#8220;:set hlsearch={on|off}&#8221; to turn on/off visual highlighting of search terms.</p>
<p>If you want to reformat HTML or XML, first install &#8220;xmllint&#8221;.  Then from inside VIM, go to line 1 (&#8220;1G&#8221;) and type &#8220;!Gxmllint &#8211;xmlout &#8211;format -&#8221; and your current buffer will be replaced with a nicely formatted version. <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Play with different options for formatting HTML instead of XML, for example.</p>
<p>I also use &#8220;gf&#8221; a lot (open the filename that the cursor is on), but it&#8217;s helpful to add to your &#8220;file search path&#8221; using &#8220;:set path+=newdir&#8221;</p>
<p>I highly recommend that my students browser through the &#8220;:help&#8221; documents.  There is a HUGE amount of functionality there&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus Bertheau</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49885</link>
		<dc:creator>Markus Bertheau</dc:creator>
		<pubDate>Sat, 05 May 2007 05:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49885</guid>
		<description><![CDATA[With the xml.vim plugin % matches opening and closing tags, too.]]></description>
		<content:encoded><![CDATA[<p>With the xml.vim plugin % matches opening and closing tags, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bartman</title>
		<link>http://pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49884</link>
		<dc:creator>bartman</dc:creator>
		<pubDate>Sat, 05 May 2007 05:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2007/05/04/search-and-indent-in-vim/#comment-49884</guid>
		<description><![CDATA[If you want to indent a block use V to highlight a block and then  to indent it.

For help read:
:h v_&gt;]]></description>
		<content:encoded><![CDATA[<p>If you want to indent a block use V to highlight a block and then  to indent it.</p>
<p>For help read:<br />
:h v_&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
