<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: vi and shell editing</title>
	<link>http://www.bradrice.com/wposx/archives/54</link>
	<description>This site is about scripting with a particular emphasis on OS X. Other things OS X, too.</description>
	<pubDate>Thu, 03 Jul 2008 23:45:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Ted</title>
		<link>http://www.bradrice.com/wposx/archives/54#comment-55</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Fri, 13 May 2005 06:50:55 +0000</pubDate>
		<guid>http://www.bradrice.com/wposx/archives/54#comment-55</guid>
		<description>Also keep in mind that:

!!command

(with NO COLON in front) will replace the current line with the output of the shell command "command".

Additionally, you can pass text to your command, have it filter it, and replace the text with the filtered output. For example, you might want to send a paragraph to the fmt command:

!}fmt

This will use fmt to format the paragraph (note that using gqap is probably a better solution for this particular example, but it's just an example).</description>
		<content:encoded><![CDATA[<p>Also keep in mind that:</p>
<p>!!command</p>
<p>(with NO COLON in front) will replace the current line with the output of the shell command &#8220;command&#8221;.</p>
<p>Additionally, you can pass text to your command, have it filter it, and replace the text with the filtered output. For example, you might want to send a paragraph to the fmt command:</p>
<p>!}fmt</p>
<p>This will use fmt to format the paragraph (note that using gqap is probably a better solution for this particular example, but it&#8217;s just an example).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
