<?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: Merging files with pr</title>
	<atom:link href="http://blog.danfego.net/2009/04/merging-files-with-pr/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.danfego.net/2009/04/merging-files-with-pr/</link>
	<description>A guy like me?</description>
	<lastBuildDate>Tue, 08 Jun 2010 14:32:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian</title>
		<link>http://blog.danfego.net/2009/04/merging-files-with-pr/comment-page-1/#comment-479</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 02 Apr 2009 21:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.danfego.net/?p=212#comment-479</guid>
		<description>In the headings.txt buffer, first:

gg0^VG$A,^[

(Where ^V is Ctrl-V and ^[ is Esc.)  This&#039;ll move the cursor to the top left, highlight everything in Visual-block mode, and add a comma at the end of each line.  Then:

gg0^VG$y

This&#039;ll highlight and copy everything column-wise.  Then in values.csv:

gg0P

This&#039;ll paste everything column-wise at the front of the existing lines.  You might have a few extra spaces after the first comma, but you can clean it up with a regex e.g.

:%s/\v^[^,]+,\zs\s*//

(Where all the ^ are literal ^&#039;s.)  Visual-block mode is quite useful even though there are only a few operators you can use in that mode.  See :h visual-block and :h blockwise-operators.</description>
		<content:encoded><![CDATA[<p>In the headings.txt buffer, first:</p>
<p>gg0^VG$A,^[</p>
<p>(Where ^V is Ctrl-V and ^[ is Esc.)  This'll move the cursor to the top left, highlight everything in Visual-block mode, and add a comma at the end of each line.  Then:</p>
<p>gg0^VG$y</p>
<p>This'll highlight and copy everything column-wise.  Then in values.csv:</p>
<p>gg0P</p>
<p>This'll paste everything column-wise at the front of the existing lines.  You might have a few extra spaces after the first comma, but you can clean it up with a regex e.g.</p>
<p>:%s/\v^[^,]+,\zs\s*//</p>
<p>(Where all the ^ are literal ^&#8217;s.)  Visual-block mode is quite useful even though there are only a few operators you can use in that mode.  See :h visual-block and :h blockwise-operators.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://blog.danfego.net/2009/04/merging-files-with-pr/comment-page-1/#comment-459</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 01 Apr 2009 15:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.danfego.net/?p=212#comment-459</guid>
		<description>Really? If you happen to know how this would be done in vim, I&#039;d be rather interested to see it. There&#039;s a lot of functionality in vim I haven&#039;t yet discovered. As a matter of fact, I&#039;ve only ever used visual mode -- I hadn&#039;t even heard of visual block mode. More to learn, I have!</description>
		<content:encoded><![CDATA[<p>Really? If you happen to know how this would be done in vim, I&#8217;d be rather interested to see it. There&#8217;s a lot of functionality in vim I haven&#8217;t yet discovered. As a matter of fact, I&#8217;ve only ever used visual mode &#8212; I hadn&#8217;t even heard of visual block mode. More to learn, I have!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.danfego.net/2009/04/merging-files-with-pr/comment-page-1/#comment-456</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 01 Apr 2009 09:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.danfego.net/?p=212#comment-456</guid>
		<description>Interesting tool, pr.  I&#039;ll have to remember that one.  You could&#039;ve done this in Vim&#039;s Visual Block mode or in Emacs via column editing too.</description>
		<content:encoded><![CDATA[<p>Interesting tool, pr.  I&#8217;ll have to remember that one.  You could&#8217;ve done this in Vim&#8217;s Visual Block mode or in Emacs via column editing too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
