<?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: Moving text around in vim</title>
	<atom:link href="http://smartic.us/2010/01/20/moving-text-around-in-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/</link>
	<description>code - video - mac - lifehack</description>
	<lastBuildDate>Mon, 12 Jul 2010 20:31:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: tcol</title>
		<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/comment-page-1/#comment-212</link>
		<dc:creator>tcol</dc:creator>
		<pubDate>Fri, 22 Jan 2010 01:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://smartic.us/?p=35609#comment-212</guid>
		<description>&lt;p&gt;The geek vids are great.  Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The geek vids are great.  Thanks!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: jjulian</title>
		<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/comment-page-1/#comment-211</link>
		<dc:creator>jjulian</dc:creator>
		<pubDate>Thu, 21 Jan 2010 11:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://smartic.us/?p=35609#comment-211</guid>
		<description>&lt;p&gt;Great job, Bryan! I used to teach vi way back in the day. Here are some more tips for manipulating text:&lt;br&gt;&lt;br&gt;You can preface many commands with a number, indicating the number of chars or words or lines you want to work on.&lt;br&gt;&lt;br&gt;5dd (delete the next 5 lines)&lt;br&gt;10yy (yank the next 10 lines)&lt;br&gt;p (put the yanked/deleted lines below the caret)&lt;br&gt;&lt;br&gt;Working with words - you can change words or delete words&lt;br&gt;&lt;br&gt;3cw (puts you in edit mode to overwrite the next 3 words)&lt;br&gt;5dw (delete the next 5 words)&lt;br&gt;&lt;br&gt;&#039;u&#039; is Undo&lt;br&gt;&lt;br&gt;Joining lines - use capital J on a line to pull up the next line&lt;br&gt;&lt;br&gt;Doing the same thing over and over again? Hit period to repeat the last command. Works really well when deleting indentation - 4x (delete 4 spaces), then down arrow, period, down arrow, period, etc&lt;br&gt;&lt;br&gt;Capital G is &quot;go&quot;. So 30G goes to line 30. ctrl-g shows you status (current line #)&lt;br&gt;&lt;br&gt;You can specify blocks using numbers too. Bryan, you touched on this with g and G. If you want to work on lines 5 thru 16, you could type :5,16d (to delete them for example)&lt;br&gt;&lt;br&gt;This was always one of my favorite vi cheatsheets: &lt;a href=&quot;http://www.eec.com/business/vi.html&quot; rel=&quot;nofollow&quot;&gt;http://www.eec.com/business/vi.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Have fun in vim! BTW, I use vim all the time, but for serious coding I stay in TextMate. :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great job, Bryan! I used to teach vi way back in the day. Here are some more tips for manipulating text:<br /><br />You can preface many commands with a number, indicating the number of chars or words or lines you want to work on.<br /><br />5dd (delete the next 5 lines)<br />10yy (yank the next 10 lines)<br />p (put the yanked/deleted lines below the caret)<br /><br />Working with words &#8211; you can change words or delete words<br /><br />3cw (puts you in edit mode to overwrite the next 3 words)<br />5dw (delete the next 5 words)<br /><br />&#39;u&#39; is Undo<br /><br />Joining lines &#8211; use capital J on a line to pull up the next line<br /><br />Doing the same thing over and over again? Hit period to repeat the last command. Works really well when deleting indentation &#8211; 4x (delete 4 spaces), then down arrow, period, down arrow, period, etc<br /><br />Capital G is &#8220;go&#8221;. So 30G goes to line 30. ctrl-g shows you status (current line #)<br /><br />You can specify blocks using numbers too. Bryan, you touched on this with g and G. If you want to work on lines 5 thru 16, you could type :5,16d (to delete them for example)<br /><br />This was always one of my favorite vi cheatsheets: <a href="http://www.eec.com/business/vi.html" rel="nofollow">http://www.eec.com/business/vi.html</a><br /><br />Have fun in vim! BTW, I use vim all the time, but for serious coding I stay in TextMate. <img src='http://smartic.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: kossnocorp</title>
		<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/comment-page-1/#comment-210</link>
		<dc:creator>kossnocorp</dc:creator>
		<pubDate>Thu, 21 Jan 2010 09:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://smartic.us/?p=35609#comment-210</guid>
		<description>&lt;p&gt;Awesome!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Awesome!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: kblake</title>
		<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/comment-page-1/#comment-208</link>
		<dc:creator>kblake</dc:creator>
		<pubDate>Wed, 20 Jan 2010 22:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://smartic.us/?p=35609#comment-208</guid>
		<description>&lt;p&gt;Great job. Practical and useful. Will be using these commands today! Thank you!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great job. Practical and useful. Will be using these commands today! Thank you!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas d&#39;Acampora Prim</title>
		<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/comment-page-1/#comment-206</link>
		<dc:creator>Lucas d&#39;Acampora Prim</dc:creator>
		<pubDate>Wed, 20 Jan 2010 19:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://smartic.us/?p=35609#comment-206</guid>
		<description>&lt;p&gt;good post! I´m getting to know vim, this was very useful!&lt;br&gt;would love to see some screencasts on tim pope´s plugins, they seem great!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>good post! I´m getting to know vim, this was very useful!<br />would love to see some screencasts on tim pope´s plugins, they seem great!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: François Beausoleil</title>
		<link>http://smartic.us/2010/01/20/moving-text-around-in-vim/comment-page-1/#comment-205</link>
		<dc:creator>François Beausoleil</dc:creator>
		<pubDate>Wed, 20 Jan 2010 19:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://smartic.us/?p=35609#comment-205</guid>
		<description>&lt;p&gt;Thanks a lot! More Vim, please.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks a lot! More Vim, please.</p>]]></content:encoded>
	</item>
</channel>
</rss>
