Re: [dev] Re: a little bit of vi+zsh magic

From: Uriel <lost.goblin_AT_gmail.com>
Date: Thu, 5 Nov 2009 09:49:36 +0100

On Thu, Nov 5, 2009 at 12:00 AM, Jacob Todd <jaketodd422_AT_gmail.com> wrote:
> On Wed, Nov 04, 2009 at 07:20:54PM +0100, Uriel wrote:
>> On Wed, Nov 4, 2009 at 1:39 PM, Anselm R Garbe <anselm_AT_garbe.us> wrote:
>> > 2009/11/4 Sven Guckes <maillist-wmi-announce_AT_guckes.net>:
>> >>  [... snip]
>> > Should also work with ed:
>> >
>> > r !ls
>> > v/\.js d
>> > g//s/^/echo /
>> > w !sh
>> >
>> > Kind regards,
>> > Anselm
>>
>> More evidence that Unix software has not progressed much in the last
>> forty years.
>>
>> But I'm sure that in a few years they will try to present us this
>> stuff as "amazing gnome-edit magic".
>>
>>
>> uriel
>>
> No one uses ed (hopefully),

I use ed almost every day, it is by far the fastest way to to small
edits, by the time vi starts up, I have typed /foo\n c\n bar\n .\n
wq\n

Plus as others have noted it can be scripted.

And here is the thing about ed, I know (or used to anyway) every
command and feature inside-out by heart, while *nobody* knows what 1%
of the vim options do! Recently I was stuck on windows with a
improperly built vim that was using DOS line endings by default, it
was fucking hell to figure out that the right option to solve the
problem was to use the *ffs* setting! There are about a dozen slightly
different flags all of which affect how line endings are set! For
Fucks Sake!

uriel

> so it doesn't really prove anything other than GNU
> and whoever else is maintaining an ed clone are stuck in the dark ages.
>
> --
> Jake Todd
> // If it isn't broke, tweak it!
>
Received on Thu Nov 05 2009 - 08:49:36 UTC

This archive was generated by hypermail 2.2.0 : Thu Nov 05 2009 - 09:00:02 UTC