<?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 and the Clipboard</title>
	<atom:link href="http://rufuspollock.org/2006/07/08/vim-and-the-clipboard/feed/" rel="self" type="application/rss+xml" />
	<link>http://rufuspollock.org/2006/07/08/vim-and-the-clipboard/</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 14:17:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Anson</title>
		<link>http://rufuspollock.org/2006/07/08/vim-and-the-clipboard/comment-page-1/#comment-4173</link>
		<dc:creator>Anson</dc:creator>
		<pubDate>Sat, 17 Feb 2007 08:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thefactz.org/ideas/archives/105#comment-4173</guid>
		<description>&lt;p&gt;I was afraid of that.
Check my website link.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I was afraid of that.
Check my website link.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anson</title>
		<link>http://rufuspollock.org/2006/07/08/vim-and-the-clipboard/comment-page-1/#comment-4172</link>
		<dc:creator>Anson</dc:creator>
		<pubDate>Sat, 17 Feb 2007 08:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thefactz.org/ideas/archives/105#comment-4172</guid>
		<description>&lt;p&gt;I just was trying to find a solution to this problem. I prefer to use vim in a terminal exclusively. And the reason I use vim is because I would rather not use the mouse if at all possible.&lt;/p&gt;

&lt;p&gt;I ended up adding a short perl script inside my ~/.vim directory. I&#039;m pretty sure this is non-standard. I made the directory ~/.vim/misc, and added it there. This is the script:&lt;/p&gt;

&lt;p&gt;!/usr/bin/perl&lt;/p&gt;

&lt;p&gt;$lines = ;
chomp $lines if($lines =~ m/^$/);
$lines .= $_ while();
chomp $lines;
print $lines;&lt;/p&gt;

&lt;p&gt;I then add this mapping to my .vimrc:&lt;/p&gt;

&lt;p&gt;map  :enewp:%!~/.vim/misc/chomp.pl  pbcopy:bw!&lt;/p&gt;

&lt;p&gt;It&#039;s not the most elegant way to handle the problem, but it suits my needs so far.
I just do any standard yank, then hit f2 if I want it on the system clipboard.&lt;/p&gt;

&lt;p&gt;Hope it helps someone.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I just was trying to find a solution to this problem. I prefer to use vim in a terminal exclusively. And the reason I use vim is because I would rather not use the mouse if at all possible.</p>

<p>I ended up adding a short perl script inside my ~/.vim directory. I&#8217;m pretty sure this is non-standard. I made the directory ~/.vim/misc, and added it there. This is the script:</p>

<p>!/usr/bin/perl</p>

<p>$lines = ;
chomp $lines if($lines =~ m/^$/);
$lines .= $_ while();
chomp $lines;
print $lines;</p>

<p>I then add this mapping to my .vimrc:</p>

<p>map  :enewp:%!~/.vim/misc/chomp.pl  pbcopy:bw!</p>

<p>It&#8217;s not the most elegant way to handle the problem, but it suits my needs so far.
I just do any standard yank, then hit f2 if I want it on the system clipboard.</p>

<p>Hope it helps someone.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: rgrp</title>
		<link>http://rufuspollock.org/2006/07/08/vim-and-the-clipboard/comment-page-1/#comment-4137</link>
		<dc:creator>rgrp</dc:creator>
		<pubDate>Wed, 14 Feb 2007 12:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.thefactz.org/ideas/archives/105#comment-4137</guid>
		<description>&lt;p&gt;If you do visual selection at the command line you should be able to just use standard apple + C key combo to copy. The pbcopy command is for when you want to pipe stuff or want to copy a selection you have selected using vim key commands (so not when using the mouse).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you do visual selection at the command line you should be able to just use standard apple + C key combo to copy. The pbcopy command is for when you want to pipe stuff or want to copy a selection you have selected using vim key commands (so not when using the mouse).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: weronika</title>
		<link>http://rufuspollock.org/2006/07/08/vim-and-the-clipboard/comment-page-1/#comment-4134</link>
		<dc:creator>weronika</dc:creator>
		<pubDate>Wed, 14 Feb 2007 06:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thefactz.org/ideas/archives/105#comment-4134</guid>
		<description>&lt;p&gt;Thanks, that&#039;s very useful!&lt;/p&gt;

&lt;p&gt;I don&#039;t seem to be able to paste an arbitrary selection to the clipboard (in Mac OS X) - even if I visual-select one word, the whole line ends up copied.  It looks like the ! command just works that way.  Is there any way around that?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks, that&#8217;s very useful!</p>

<p>I don&#8217;t seem to be able to paste an arbitrary selection to the clipboard (in Mac OS X) &#8211; even if I visual-select one word, the whole line ends up copied.  It looks like the ! command just works that way.  Is there any way around that?</p>]]></content:encoded>
	</item>
</channel>
</rss>

