<?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: Fun with Vimgolf 3: Swapping Words by Sorting</title>
	<atom:link href="http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/</link>
	<description>a blog about mastering the world&#039;s best text editor</description>
	<lastBuildDate>Fri, 17 May 2013 21:26:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Evaluating Lisp Forms in Regular Expressions &#124; Mastering Emacs</title>
		<link>http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/#comment-22300</link>
		<dc:creator>Evaluating Lisp Forms in Regular Expressions &#124; Mastering Emacs</dc:creator>
		<pubDate>Mon, 11 Mar 2013 13:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=614#comment-22300</guid>
		<description><![CDATA[[...] recently did a VimGolf challenge where I abused sort-regexp-fields so I could swap two different words. I decided to do it in the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] recently did a VimGolf challenge where I abused sort-regexp-fields so I could swap two different words. I decided to do it in the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sorting Rectangles &#124; Irreal</title>
		<link>http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/#comment-19761</link>
		<dc:creator>Sorting Rectangles &#124; Irreal</dc:creator>
		<pubDate>Fri, 18 Jan 2013 10:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=614#comment-19761</guid>
		<description><![CDATA[[...] has a nice solution to the last VimGolf in Emacs challenge. It certainly doesn&#8217;t win on total keystrokes but it [...]]]></description>
		<content:encoded><![CDATA[<p>[...] has a nice solution to the last VimGolf in Emacs challenge. It certainly doesn&#8217;t win on total keystrokes but it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mickey</title>
		<link>http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/#comment-19510</link>
		<dc:creator>mickey</dc:creator>
		<pubDate>Tue, 15 Jan 2013 12:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=614#comment-19510</guid>
		<description><![CDATA[Hey, no problem; your solution (or something along those lines) is what I would do were I to solve it &#039;in real life.&#039;

I do have another fun solution to this one that does it in a single &lt;code&gt;replace-regexp&lt;/code&gt;... but that&#039;s part of a bigger, upcoming article ;)]]></description>
		<content:encoded><![CDATA[<p>Hey, no problem; your solution (or something along those lines) is what I would do were I to solve it &#8216;in real life.&#8217;</p>
<p>I do have another fun solution to this one that does it in a single <code>replace-regexp</code>&#8230; but that&#8217;s part of a bigger, upcoming article <img src='http://www.masteringemacs.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel</title>
		<link>http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/#comment-19464</link>
		<dc:creator>Axel</dc:creator>
		<pubDate>Mon, 14 Jan 2013 23:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=614#comment-19464</guid>
		<description><![CDATA[Ah, didn&#039;t notice that this is considered the &quot;default&quot; solution and posted over in the referred blog posting. :-)]]></description>
		<content:encoded><![CDATA[<p>Ah, didn&#8217;t notice that this is considered the &#8220;default&#8221; solution and posted over in the referred blog posting. <img src='http://www.masteringemacs.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel</title>
		<link>http://www.masteringemacs.org/articles/2013/01/14/fun-vimgolf-3-swapping-words-sorting/#comment-19463</link>
		<dc:creator>Axel</dc:creator>
		<pubDate>Mon, 14 Jan 2013 23:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=614#comment-19463</guid>
		<description><![CDATA[Hrm, without magic it&#039;s doable with 8 keystrokes in Emacs, too, given that we have to start at the beginning of the buffer:


1. C-s
2. =
3. C-k
4. Down
5. C-y
6. C-k
7. Up
8. C-y

.oO( C-x C-s ;-)


That&#039;s 8 if you don&#039;t count pressing the Control key extra.

If you count the Control key extra, you&#039;ll probably use C-n and C-p instead of Up and Down and keep the Control key pressed as long as possible. You&#039;ll just have to lift it for the &quot;=&quot;.

If you use M-d instead of C-k you&#039;ll need also one C-u C-y instead of one C-y, so that would be 9 key strokes.

I also tried to solve it with Rectangles (C-x r ...), but there seems no possibility to narrow-to-rectangle. That&#039;d have been neat: Mark a rectangle around the two words to exchange, narrow-to-rectangle, transpose-words (or transpose-lines), done. :-)]]></description>
		<content:encoded><![CDATA[<p>Hrm, without magic it&#8217;s doable with 8 keystrokes in Emacs, too, given that we have to start at the beginning of the buffer:</p>
<p>1. C-s<br />
2. =<br />
3. C-k<br />
4. Down<br />
5. C-y<br />
6. C-k<br />
7. Up<br />
8. C-y</p>
<p>.oO( C-x C-s <img src='http://www.masteringemacs.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>That&#8217;s 8 if you don&#8217;t count pressing the Control key extra.</p>
<p>If you count the Control key extra, you&#8217;ll probably use C-n and C-p instead of Up and Down and keep the Control key pressed as long as possible. You&#8217;ll just have to lift it for the &#8220;=&#8221;.</p>
<p>If you use M-d instead of C-k you&#8217;ll need also one C-u C-y instead of one C-y, so that would be 9 key strokes.</p>
<p>I also tried to solve it with Rectangles (C-x r &#8230;), but there seems no possibility to narrow-to-rectangle. That&#8217;d have been neat: Mark a rectangle around the two words to exchange, narrow-to-rectangle, transpose-words (or transpose-lines), done. <img src='http://www.masteringemacs.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
