From owner-freebsd-questions Tue Jun 12 23:52: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.carolina.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id C82C537B407 for ; Tue, 12 Jun 2001 23:51:40 -0700 (PDT) (envelope-from jconner@enterit.com) Received: from CONCON.enterit.com ([24.88.181.33]) by mail5.carolina.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 13 Jun 2001 02:51:27 -0400 Message-Id: <5.1.0.14.0.20010613031233.02512c20@mail.enterit.com> X-Sender: jconner@enterit.com@mail.enterit.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 13 Jun 2001 03:12:53 -0400 To: David Leimbach From: Jim Conner Subject: Re: vi Cc: questions@freebsd.org In-Reply-To: <20010609094110.A477@mutt.home.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 09:41 AM 6/9/2001 -0500, David Leimbach wrote: >It seems no one has actually answered your question yet. :) > >In the early days of unix there was the "ed" editor. It is a line editor >somewhat like edlin for DOS [guess where the DOS people got the idea from?]. > >You could only see one line at a time with ed but it had some really powerful >features. Most of the cool sed commands we have today came straight from ed. > >sed means "stream editor" this means that instead of editing a file you can >edit stuff from standard input through a pipe. > >For example: >"cat file | sed 's/Hello/Goodbye/g'" Can also do: sed 's/Hello/Goodbye/g' filename >Cat sends a file to standard output. The pipe "|" makes the standard output >of the command to the left of it the standard input of the command to the >right >of it. > >Sed then takes the standard input and does a substitution of all occurances >of "Hello" with "Goodbye" ['s/Hello/Goodbye/'] > >All of this could be done at the ed command line while editing a file too. > >"ed filename" and the sed command can be issued here as well. > >"ex is a derivative editor of ed with some enhancements. VI stands for >Visual Interface and actually is a visual interface to the ex editor. > >Here is the family tree: > > ed > ex sed > vi > vim elvis [other vi like editors] >So you see vi has a long family bloodline to the original UNIX line editing >program.. Its basically tradition and the fact that the elders pass the >knowledge of vi down to the youthful newbie UNIX users that keeps vi going as >the standard UNIX editor. Its also really really lightweight in comparison >to emacs which is huge and considered bloated... [I personally like emacs >and many a religious war has been fought over the vi emacs argument.... >If you read slashdot I am you sure you have seen the banner add for thinkgeek >with the two guys screeming their preferred editor name at each other...] > >Anyway that about says it all.. Understand? Its tradition! Learn vi you >will be a better person! :) > >On Sat, Jun 09, 2001 at 12:37:21AM -0500, Jason Halbert wrote: > > Hi All: > > > > Why is vi the default choice of editor for UNIX and how did it become > > the default? I find it cumbersome. > > > > I'm just curious of it's advantages over joe or pico or any of the > > others. > > > > ---- > > Jason > > jason@jason-n3xt.org > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message - Jim - NOTJames - jconner@enterit.com - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | Today's errors, in contrast: | - | Windows - "Invalid page fault in module kernel32.dll at 0032:A16F2935" | - | UNIX - "segmentation fault - core dumped" | - | Humans - "OOPS, I've fallen and I can't get up" | - -------------------------------------------------------------------------- - (To view this properly use a non-proportional font in your MUA) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message