From owner-freebsd-arch Sun Jul 8 7:30:23 2001 Delivered-To: freebsd-arch@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id B410E37B401 for ; Sun, 8 Jul 2001 07:30:17 -0700 (PDT) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id HAA11222; Sun, 8 Jul 2001 07:28:39 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda11220; Sun Jul 8 07:28:35 2001 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.4/8.9.1) id f68ESJ502891; Sun, 8 Jul 2001 07:28:19 -0700 (PDT) Received: from UNKNOWN(10.1.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdzy2885; Sun Jul 8 07:27:47 2001 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.4/8.9.1) id f68ER8P03582; Sun, 8 Jul 2001 07:27:08 -0700 (PDT) Message-Id: <200107081427.f68ER8P03582@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdeR3573; Sun Jul 8 07:26:18 2001 X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-Sender: schubert To: Peter Wemm Cc: Will Andrews , Jason Evans , Dag-Erling Smorgrav , Bill Fenner , arch@FreeBSD.ORG Subject: Re: nvi maintainer? In-reply-to: Your message of "Sun, 08 Jul 2001 02:37:45 PDT." <20010708093745.DB2303811@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 08 Jul 2001 07:26:18 -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010708093745.DB2303811@overcee.netplex.com.au>, Peter Wemm writes : > Will Andrews wrote: > > [ moving from developers@ to arch@ ] > > > > On Sun, Jul 08, 2001 at 12:51:55AM -0700, Jason Evans (jasone@canonware.com > ) > wrote: > > > This unfortunately means that FreeBSD will not be able to use the next > > > release of nvi as part of the base system. In other words, we're going t > o > > > have to fork nvi. Yuck. > > > > OR... import Vim and get rid of nvi? :-) > > > > http://www.vim.org/ > > > What do you say? 8) > > I'm beginning to wonder.. The real question is whether it is a faithful > enough drop-in replacement for nvi. I'll alias it on some of my machines > and see if it bites me or not. > > The next thing is that moving a port to the base system usually has a > pretty chilling effect on the package.. Is that going to OK with regular > vim users who are used to having a dynamic, regularly updated port? At one time I had replaced vi (renamed vi and symlinked vim in its place) on a few FreeBSD, Solaris, and DEC UNIX systems. There was one feature of vim that confused me and another that I did not care about. Sometimes when I edit a file I might make a change then compare the change with what was before, using the undo ("u") function as a toggle between old and new. I suppose I could have used undo and redo under vim, however with many other systems I was maintaining at the time still using the vendor's original vi, of which I could not replace because of customers, retraining myself to instinctively use one approach on one set of systems and another on another set of systems caused some confusion, as I'd have to stop and think, "which system was I on?" My solution, set undolevels=0 Setting undolevels=0 causes vim to have the same undo/redo behaviour as vendor vi and nvi. Vim creates a backup file when saving edits to a file. The disks on those systems with vim installed had backup copies peppered everywhere within the filesystems of those systems that had it installed. One solution was to create a cron job to delete the backup files after a predetermined number of days. The solution I finally used was, set nobackup Other than the above two complaints I found that vim was the same as vendor vi and nvi. If you're looking for a faithful enough replacement for nvi, I suppose undolevels=0 and nobackup could be the default behaviour under FreeBSD. What about PicoBSD and small embedded applications of FreeBSD? -r-xr-xr-x 6 root wheel 283300 Jun 7 09:39 /usr/bin/vi -rwxr-xr-x 1 root wheel 1016184 May 28 08:16 /usr/local/bin/vim On RH 7.1 vim without the GUI is, -rwxr-xr-x 1 root root 377404 Apr 2 06:24 /bin/vi Lately I've been using gvim (the GUI vim). It has the advantage of being able to cut and paste files, like syslog.conf that have tab characters, into Xterm sessions with tab characters intact, e.g. not expanded to spaces. If we do go ahead and replace nvi with vim, whomever does the work, please include gvim in the base distribution. I would hate to have vim in the base system only to install the vim port just to get gvim. (Of course this is a major cause of the bloat I complained about above -- a make.conf option maybe?) :/ You also raise a good point about packages being chilled in the base system. I've upgraded packages in the base system, when I've needed the upgrade before FreeBSD has had it available by replacing whatever is in /usr/src/contrib with the new package, in the past namely, amd, bind, cvs, ipfilter, isc-dhcp, and sendmail. Usually its just a drop in replacement and rebuild the various bits and pieces, and occasionally a minor patch to a makefile or two or a buildworld. For those who cannot wait, this approach is definitely an option. Alternatively have no vi or vim in the base system at all. Sysinstall could make it mandatory to install one of the vim packages for you while buildworld could build vim in ports. (OK, it's an off the wall idea but hey, it's an option). > > Cheers, > -Peter > -- > Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au > "All of this is for nothing if we don't go to the stars" - JMS/B5 Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/Alpha Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message