From owner-freebsd-questions Sat Jan 25 19:22:24 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FB6D37B401 for <questions@FreeBSD.ORG>; Sat, 25 Jan 2003 19:22:23 -0800 (PST) Received: from above.proper.com (mail.proper.com [208.184.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB39B43EB2 for <questions@FreeBSD.ORG>; Sat, 25 Jan 2003 19:22:22 -0800 (PST) (envelope-from phoffman@proper.com) Received: from [165.227.249.18] (165-227-249-18.client.dsl.net [165.227.249.18]) by above.proper.com (8.11.6/8.11.3) with ESMTP id h0Q3MIo09955 for <questions@FreeBSD.ORG>; Sat, 25 Jan 2003 19:22:18 -0800 (PST) Mime-Version: 1.0 X-Sender: phoffprop@mail.proper.com (Unverified) Message-Id: <p05210200ba59031c28c6@[165.227.249.18]> In-Reply-To: <20030126023004.GG18454@dan.emsphone.com> References: <KOEDJPGCNAIOODFOCJJIEEAIGDAA.petersen@fully.qualified.domain.name> <p05210202ba58f08ccec6@[165.227.249.18]> <20030126023004.GG18454@dan.emsphone.com> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to <http://www.habeas.com/report>. Date: Sat, 25 Jan 2003 19:22:15 -0800 To: questions@FreeBSD.ORG From: Paul Hoffman <phoffman@proper.com> Subject: Re: A vi for /bin? Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-questions.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions> X-Loop: FreeBSD.ORG At 1:36 AM +0000 1/26/03, Petersen wrote: >Assuming you have the object files from a buildworld hanging around, then >cd /usr/obj/usr/src/usr.bin/vi >cc -O -pipe -o vi *.o -lncurses -static && strip vi && mv vi /bin/ >should probably supply you with what you want. Two modifications made this work fine: - I hadn't done a buildworld, but doing the following got the same result: cd /usr/src/usr.bin/vi make && cc -O -pipe -o vi *.o -lncurses -static && strip vi && mv vi /bin/ - As pointed out off-line, you also need to get it the termcap library. Doing cp /usr/share/misc/termcap.db /root/.termcap.db fixes that. At 8:30 PM -0600 1/25/03, Dan Nelson wrote: >You >might want to install e3, which is only 13k statically linked and uses >generic ANSI escape codes so it doesn't need a termcap file. If run as >e3vi, it acceptes vi keystrokes. Nice! e3 built from the ports collection linked statically automatically. e3 didn't work correctly on my console (it didn't recognize the Alt key), but e3vi worked fine and felt just like vi. Thanks! I now feel better about emergencies. --Paul Hoffman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message