<?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: Stupid ideas part 469: line editor</title>
	<atom:link href="http://4.flowsnake.org/archives/469/feed" rel="self" type="application/rss+xml" />
	<link>http://4.flowsnake.org/archives/469</link>
	<description>A Pythoneer's adventures with Scheme, Clojure and a whole lot more. ^_^</description>
	<lastBuildDate>Sat, 22 May 2010 22:09:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Sam Phillips</title>
		<link>http://4.flowsnake.org/archives/469/comment-page-1#comment-488</link>
		<dc:creator>Sam Phillips</dc:creator>
		<pubDate>Wed, 04 Feb 2009 20:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://4.flowsnake.org/?p=469#comment-488</guid>
		<description>I don&#039;t use line editors often.  But from the perspective of implementing an screen style editor (like vi/emacs), starting out with a line editor for the core is very useful in understanding how editing really works.

My possibly offtopic 0.02.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t use line editors often.  But from the perspective of implementing an screen style editor (like vi/emacs), starting out with a line editor for the core is very useful in understanding how editing really works.</p>
<p>My possibly offtopic 0.02.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://4.flowsnake.org/archives/469/comment-page-1#comment-487</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://4.flowsnake.org/?p=469#comment-487</guid>
		<description>I&#039;ve used ed (often with -p: ) while running under script .  Full-screen editors do nasty stuff to the transcript, making it difficult to really see what happened.  It took a bit to learn its commands, but they&#039;re enough to satisfy navigation, copy/paste, deletion/replacement, and even viewing chunks of the file.  I did some basic shell scripting like that without problem, but haven&#039;t tried any larger projects.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used ed (often with -p: ) while running under script .  Full-screen editors do nasty stuff to the transcript, making it difficult to really see what happened.  It took a bit to learn its commands, but they&#8217;re enough to satisfy navigation, copy/paste, deletion/replacement, and even viewing chunks of the file.  I did some basic shell scripting like that without problem, but haven&#8217;t tried any larger projects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Nowak</title>
		<link>http://4.flowsnake.org/archives/469/comment-page-1#comment-474</link>
		<dc:creator>Hans Nowak</dc:creator>
		<pubDate>Mon, 26 Jan 2009 18:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://4.flowsnake.org/?p=469#comment-474</guid>
		<description>@JC: I am curious how well a line editor works for code. I&#039;d expect that editing Lisp or Python code would be cumbersome, as it&#039;s easier to make mistakes in matching parentheses or indentation. Maybe less so when you add it, but what about when you go back and edit it?</description>
		<content:encoded><![CDATA[<p>@JC: I am curious how well a line editor works for code. I&#8217;d expect that editing Lisp or Python code would be cumbersome, as it&#8217;s easier to make mistakes in matching parentheses or indentation. Maybe less so when you add it, but what about when you go back and edit it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://4.flowsnake.org/archives/469/comment-page-1#comment-465</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 22 Jan 2009 08:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://4.flowsnake.org/?p=469#comment-465</guid>
		<description>When I first create a simple text file, it will often be with ed.  Good old ed. vi and friends clear the whole screen, making it difficult to copy paste with the mouse.</description>
		<content:encoded><![CDATA[<p>When I first create a simple text file, it will often be with ed.  Good old ed. vi and friends clear the whole screen, making it difficult to copy paste with the mouse.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Cowan</title>
		<link>http://4.flowsnake.org/archives/469/comment-page-1#comment-464</link>
		<dc:creator>John Cowan</dc:creator>
		<pubDate>Thu, 22 Jan 2009 00:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://4.flowsnake.org/?p=469#comment-464</guid>
		<description>YES YES YES YES YES YES!

I am an &quot;ex&quot; troglodyte.  I use &quot;ex&quot; for all my editing: code, email, HTML, you name it.  I could (and on rare occasions actually do) use &quot;ed&quot;, but &quot;ex&quot; adds a few convenience features to &quot;ed&quot; that I find extremely useful.  (Edlin is a dreadful turkey.)

1) Am I used to it?  After thirty years of professional programming, I have never bothered to get used to anything else.

2) If I&#039;m scrolling, repeated &quot;z&quot; commands; otherwise by searching.

3) I run &quot;ex&quot; in a terminal window, so I do select, copy (not cut), and paste using ordinary X/Gnome mechanisms.  Of course, I only paste after giving an a(ppend), i(nsert), or c(hange) command.

4) I use z or p(rint) to display a stretch, and then /xxxx/,/yyyy/d(elete) or /xxxx/,/yyyy/c(hange) to delete or replace lines of text.  Intra-line changes, as well as global search and replace, use the s(ubstitute)/foo/bar/ command.

5) My version of code completion is touch-typing.  I do svn things in a shell window.

6) No macros.  I don&#039;t use &quot;ex&quot; to edit text, I just *edit text*.  I no more think about what commands I am using, normally, than I think about what fingers I use to press keys (I&#039;m a touch-typist).  So I don&#039;t want a configurable editor, I want a stable editor.

One problem with using &quot;ex&quot; is that many systems provide Vim as their &quot;vi&quot;, and Vim releases &lt; 7.0 are crappy &quot;ex&quot; implementations.  Nvi and Heritage Toolkit Vi, however, are excellent.  I install one or the other of these; in particular, Heritage Toolkit can be installed into your home directory on systems where you don&#039;t have root, although there is a very slight degradation of function.

However, if I were starting off now, I&#039;d probably use Sam rather than &quot;ex&quot;; it provides a smooth integration of mouse-editable display windows and a command-line editor closely related to &quot;ex&quot; but with some improvements in generality and flexibiity.

See http://catb.org/~esr/writings/taoup/html/ch13s02.html for an objective writeup of the ed/ex, vi, Sam, emacs, and Acme/Wily editors; the followup at http://catb.org/~esr/writings/taoup/html/ch13s03.html talks about the strengths and weaknesses of each.</description>
		<content:encoded><![CDATA[<p>YES YES YES YES YES YES!</p>
<p>I am an &#8220;ex&#8221; troglodyte.  I use &#8220;ex&#8221; for all my editing: code, email, HTML, you name it.  I could (and on rare occasions actually do) use &#8220;ed&#8221;, but &#8220;ex&#8221; adds a few convenience features to &#8220;ed&#8221; that I find extremely useful.  (Edlin is a dreadful turkey.)</p>
<p>1) Am I used to it?  After thirty years of professional programming, I have never bothered to get used to anything else.</p>
<p>2) If I&#8217;m scrolling, repeated &#8220;z&#8221; commands; otherwise by searching.</p>
<p>3) I run &#8220;ex&#8221; in a terminal window, so I do select, copy (not cut), and paste using ordinary X/Gnome mechanisms.  Of course, I only paste after giving an a(ppend), i(nsert), or c(hange) command.</p>
<p>4) I use z or p(rint) to display a stretch, and then /xxxx/,/yyyy/d(elete) or /xxxx/,/yyyy/c(hange) to delete or replace lines of text.  Intra-line changes, as well as global search and replace, use the s(ubstitute)/foo/bar/ command.</p>
<p>5) My version of code completion is touch-typing.  I do svn things in a shell window.</p>
<p>6) No macros.  I don&#8217;t use &#8220;ex&#8221; to edit text, I just *edit text*.  I no more think about what commands I am using, normally, than I think about what fingers I use to press keys (I&#8217;m a touch-typist).  So I don&#8217;t want a configurable editor, I want a stable editor.</p>
<p>One problem with using &#8220;ex&#8221; is that many systems provide Vim as their &#8220;vi&#8221;, and Vim releases &lt; 7.0 are crappy &#8220;ex&#8221; implementations.  Nvi and Heritage Toolkit Vi, however, are excellent.  I install one or the other of these; in particular, Heritage Toolkit can be installed into your home directory on systems where you don&#8217;t have root, although there is a very slight degradation of function.</p>
<p>However, if I were starting off now, I&#8217;d probably use Sam rather than &#8220;ex&#8221;; it provides a smooth integration of mouse-editable display windows and a command-line editor closely related to &#8220;ex&#8221; but with some improvements in generality and flexibiity.</p>
<p>See <a href="http://catb.org/~esr/writings/taoup/html/ch13s02.html" rel="nofollow">http://catb.org/~esr/writings/taoup/html/ch13s02.html</a> for an objective writeup of the ed/ex, vi, Sam, emacs, and Acme/Wily editors; the followup at <a href="http://catb.org/~esr/writings/taoup/html/ch13s03.html" rel="nofollow">http://catb.org/~esr/writings/taoup/html/ch13s03.html</a> talks about the strengths and weaknesses of each.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
