[Gllug] ed vs emacs/vi, was: ed vs emacs, was: OpenMoko Neo Freerunner

Harry Rickards hrickards at l33tmyst.com
Sat May 9 15:12:16 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/09/09 15:42, Alain Williams wrote:
> On Sat, May 09, 2009 at 02:33:05PM +0100, Nix wrote:
>> On 8 May 2009, Alain Williams spake thusly:
> 
>>> As a line editor: ed is very good.
>> As long as you want to edit a single line at a time, don't ever want to
>> see lots of stuff at once, never want to deal with things except on a
>> strictly line-by-line basis...
> 
> errrm: with vi/emacs/... you have your cursor on one character (ie one line)
> at any one time.

I think he means that you can do find and replace etc with vi/emacs. I
suppose you could use a separate tool like sed for that though.

> You want to see multiple line in ed, how about:
> 	.-1,.+10p
> Change multiple lines:
> 	1,$s/foo/bar/
> 
>> ... but I tend to edit much larger chunks than that at once, and without
>> syntax highlighting and the ability to see many files simultaneously
>> things get very difficult.
> 
> Different tools, different purposes.
> 
>> Emacs provides that. vim does. ed, not so much. I actually prefer to use
>> sed -i in extremis: that's how nasty I think ed is.
> 
> I agree that I prefer emacs for everyday use to ed. But to say that
> ed is nasty is just plain wrong. Try using for a week - and then comment.
> But I suspect that your mind is made up.
> 

And about the subject, what about vi?

- -- 
Many thanks
Harry Rickards (a.k.a l33tmyst)

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/GCM/GCS/GCC/GIT/GM d? s: a? C++++ UL++++ P- L+++ E--- W+++ N o K+
w--- O- M- V- PS+  PE Y+ PGP++ t 5 X R tv-- b+++ DI D---- G e* h! !r y?
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoFnVAACgkQ1kZz3mRu0GoAPACdEBwefnPfTs+s8zh/yTy7Dktq
BN0AoNVptbkzIAj64/PMF0ozwFfzaqN9
=x1RP
-----END PGP SIGNATURE-----
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list