<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Blog entries tagged vim</title>
		<description>Blog entries tagged vim</description>
		<link>http://www.tech-diary.com</link>
		<lastBuildDate>Tue, 07 Sep 2010 19:32:36 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>Vim: insert line numbers</title>
			<link>http://www.tech-diary.com/vim-insert-line-numbers.html</link>
			<description>&lt;p&gt;To insert line numbers at the beginning of every line in Vim, do this:&lt;/p&gt;&lt;br/&gt;&lt;p&gt;:%s/^/\=line(&quot;.&quot;)&lt;/p&gt;&lt;br/&gt;&lt;p&gt;This is a global search and replace (%s/[search]/[replace]), matching the beginning of each line (^) with an expression (\=) that returns the current line number (line(&quot;.&quot;)).&lt;/p&gt;&lt;br/&gt;&lt;p&gt;To add a comma (or any other character) after the line number, do it like this:&lt;/p&gt;&lt;br/&gt;&lt;p&gt;:%s/^/\=line(&quot;.&quot;) . &quot;,&quot;&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Any valid Vim expression is valid after the &quot;\=&quot;, so you could start line number with 100 likeRead More...</description>
			<author>Brad Waite</author>
			<pubDate>Mon, 28 Sep 2009 17:12:54 +0100</pubDate>
		<category>vim</category>
 <category>search and replace</category>
		</item>
	</channel>
</rss>
