From owner-freebsd-newbies Sun Jun 14 21:51:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA09972 for freebsd-newbies-outgoing; Sun, 14 Jun 1998 21:51:12 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from minos.dyn.ml.org (dominus@client-151-197-32-38.bellatlantic.net [151.197.32.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA09937 for ; Sun, 14 Jun 1998 21:50:27 -0700 (PDT) (envelope-from dominus@lies.dyn.ml.org) Received: from localhost (dominus@localhost) by minos.dyn.ml.org (8.8.8/8.8.8) with SMTP id AAA01066; Mon, 15 Jun 1998 00:49:57 -0400 (EDT) (envelope-from dominus@lies.dyn.ml.org) X-Authentication-Warning: minos.dyn.ml.org: dominus owned process doing -bs Date: Mon, 15 Jun 1998 00:49:56 -0400 (EDT) From: James X-Sender: dominus@minos.dyn.ml.org Reply-To: higginsj@iname.com To: Tim Gerchmez cc: newbies@FreeBSD.ORG Subject: Re: A first encounter with 'vi' In-Reply-To: <3.0.5.32.19980614203302.007d0800@mx.serv.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 14 Jun 1998, Tim Gerchmez wrote: > At 11:21 PM 6/14/98 -0400, you wrote: > > >In fact, I tryed today chsh and it was vi who was the editor. > > Hmm, strange, when I switched from csh to sh it was ee that was the editor, > but vi was the editor when switching back. I think it has something to do > with the default editor set in your home directory. You must have already > been set to vi as the default when you switched. Try looking at the EDITOR environment variable. Some things look at that when choosing what to work with. > I did finally get the thing about command mode and edit mode. The thing > that bugged me was there was no easy way to escape it, even ctrl-alt-del > was trapped and I think I had to shut off my computer to get out of it at > first. Then I read the man pages enough to change the one character I > needed (added "C" before "SH" to change it back to "CSH" and got into > command mode, saved and exited. That did the trick. What kind of an > editor is it when you have to shut down your computer, reboot several > times, read man pages three times to alter one character? Like I said, I > think it would be a fit punishment for someone who committed a serious > crime to have to write a 40 page essay using vi. Do that instead of > sending to jail, and he won't ever commit a crime again :-) > Have done several web sites and lots of C/C++ with it. Trust me it is not *THAT* bad. : ) It is all I use and work and I do web development. vi is one of the first things I look for when I have to work on a new platform. I even have it for windows (vim at least). (Along with the rest of the Cygnus tools for Windows NT : ) It just takes some learning. I feel like I am most productive in vi, may hands never leave the keys for anything and I can write like a fiend. Also, I have a long list of abbreviations and keybinds in my .exrc which comes in very handy. James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message