<?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: Cut and paste text in vi or vim</title>
	<atom:link href="http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: regdoug</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-52774</link>
		<dc:creator>regdoug</dc:creator>
		<pubDate>Thu, 22 Dec 2011 22:24:24 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-52774</guid>
		<description>Actually, vi has 9 buffers in which deleted text is stored.  Every time you cut text it moves the text &quot;back&quot; in the buffers.

When you first cut (or yank) something, it is placed in buffer #1
When you do it again, buffer #1 is moved to #2 and the new text is placed in #1
and so on until buffer #9.  The contents of #9 are lost on new edits

the p command retrieves text from buffer #1 but you can retrieve text from other buffers by using &quot;2p, &quot;3p, or similar (note the double quotes)</description>
		<content:encoded><![CDATA[<p>Actually, vi has 9 buffers in which deleted text is stored.  Every time you cut text it moves the text &#8220;back&#8221; in the buffers.</p>
<p>When you first cut (or yank) something, it is placed in buffer #1<br />
When you do it again, buffer #1 is moved to #2 and the new text is placed in #1<br />
and so on until buffer #9.  The contents of #9 are lost on new edits</p>
<p>the p command retrieves text from buffer #1 but you can retrieve text from other buffers by using &#8220;2p, &#8220;3p, or similar (note the double quotes)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteosistisette</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-24467</link>
		<dc:creator>Matteosistisette</dc:creator>
		<pubDate>Mon, 06 Jun 2011 11:49:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-24467</guid>
		<description>Oh sorry, I was trying to paste writing a :p command, just like you use a :d command for deletion. Instead, you just have to press the p key to paste</description>
		<content:encoded><![CDATA[<p>Oh sorry, I was trying to paste writing a :p command, just like you use a :d command for deletion. Instead, you just have to press the p key to paste</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteosistisette</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-24466</link>
		<dc:creator>Matteosistisette</dc:creator>
		<pubDate>Mon, 06 Jun 2011 11:46:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-24466</guid>
		<description>d for delete works, but p doesn&#039;t paste anything.

Oh well the article is a few years old, maybe vim has changed. </description>
		<content:encoded><![CDATA[<p>d for delete works, but p doesn&#8217;t paste anything.</p>
<p>Oh well the article is a few years old, maybe vim has changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-29048</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 30 Mar 2009 20:30:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-29048</guid>
		<description>For example (with PuTTY), you would press Control+C on the text you want to copy, then switch to PuTTY, press i to insert text, then right click to have PuTTY paste the text in.</description>
		<content:encoded><![CDATA[<p>For example (with PuTTY), you would press Control+C on the text you want to copy, then switch to PuTTY, press i to insert text, then right click to have PuTTY paste the text in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael Gunnarsson</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-28938</link>
		<dc:creator>Mikael Gunnarsson</dc:creator>
		<pubDate>Wed, 25 Mar 2009 14:26:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-28938</guid>
		<description>No, the text you copy in windows isn&#039;t automagically put into VI&#039;s buffer.

To copy text from windows to the remote host you need to go into insert mode in VI and then use your SSH client&#039;s paste function.
</description>
		<content:encoded><![CDATA[<p>No, the text you copy in windows isn&#8217;t automagically put into VI&#8217;s buffer.</p>
<p>To copy text from windows to the remote host you need to go into insert mode in VI and then use your SSH client&#8217;s paste function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steven hildenburg</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-27636</link>
		<dc:creator>steven hildenburg</dc:creator>
		<pubDate>Wed, 04 Feb 2009 05:01:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-27636</guid>
		<description>oops typo...i meant ...&quot;press CTRL+C&quot; - in notepad</description>
		<content:encoded><![CDATA[<p>oops typo&#8230;i meant &#8230;&#8221;press CTRL+C&#8221; &#8211; in notepad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steven hildenburg</title>
		<link>http://www.tech-recipes.com/rx/429/cut-and-paste-text-in-vi-or-vim/comment-page-1/#comment-27635</link>
		<dc:creator>steven hildenburg</dc:creator>
		<pubDate>Wed, 04 Feb 2009 05:01:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-27635</guid>
		<description>Does this work for external text? 
Say, i want to copy from my pc notpad file into an SSH window that is running VIM - do i select my text in notepad, press CTRL+V , then put my cursor in VIM and press p (in command mode).

I only ever use linux from a distance to manage my website&#039;s config files - so i always feel quite lost.

</description>
		<content:encoded><![CDATA[<p>Does this work for external text?<br />
Say, i want to copy from my pc notpad file into an SSH window that is running VIM &#8211; do i select my text in notepad, press CTRL+V , then put my cursor in VIM and press p (in command mode).</p>
<p>I only ever use linux from a distance to manage my website&#8217;s config files &#8211; so i always feel quite lost.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 3/14 queries in 0.837 seconds using memcached
Object Caching 363/368 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 02:14:56 -->
