From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 23 20:36:07 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42E5D106564A for ; Wed, 23 Mar 2011 20:36:07 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id E92D88FC21 for ; Wed, 23 Mar 2011 20:36:06 +0000 (UTC) Received: by qyk35 with SMTP id 35so4915380qyk.13 for ; Wed, 23 Mar 2011 13:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZfW9AnXfZfpfqtUa1RGQDKE8wrX6TRjBjJLxvXR8fTE=; b=QO1QQOsc5OT8Nca669gv+pKjYr4zdUAECLHta5SB6SxCQuu6n7THsLFCTbcY4d672t 7YLPckgUp4LespFqH5Pral9wjN7BZuUae02/Xd6/GQq8a1sSPKNQ0SVbMTJWJ6wHgdkL 3GARJUzxvWaCADi1eCTN9Zq9HfZ97FNW825zQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mE+43SAn23wCLpqLvZ52PU36FkQI/Id1UG4ARyiNPw12NZOJM6sTIixuK52RpHKdqS DIPHr+6I2vHjywNzy+DgmQ70ypN33YCrv9855+3O9Grz8n5qoBjN+0msuC6UOfZzsYca 3uBY+uhAehvtBAloK82rkxdj14lcxj8a3C0D4= MIME-Version: 1.0 Received: by 10.224.71.69 with SMTP id g5mr6476910qaj.305.1300912564518; Wed, 23 Mar 2011 13:36:04 -0700 (PDT) Received: by 10.224.20.19 with HTTP; Wed, 23 Mar 2011 13:36:04 -0700 (PDT) In-Reply-To: <86aaglx1ow.fsf@gmail.com> References: <86mxkm1erm.fsf@gmail.com> <86aaglx1ow.fsf@gmail.com> Date: Wed, 23 Mar 2011 15:36:04 -0500 Message-ID: From: Zhihao Yuan To: Pan Tsu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: [GSoC] About the idea: Unicode support in vi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 20:36:07 -0000 On Wed, Mar 23, 2011 at 11:05 AM, Pan Tsu wrote: > Zhihao Yuan writes: > >>> Why not just use "traditional vi"? >>> >>> =C2=A0 http://ex-vi.sourceforge.net/ (lives under editors/2bsd-vi) >> >> This one lacks of many feature, compared with nvi. > > nvi also lacks some features, e.g. lisp, modelines, sourceany. > ex-vi is more lightweight > > =C2=A0# both built with DEBUG_FLAGS=3D-ggdb + mg(1) for reference > > =C2=A0$ =C2=A0du -Ah * > =C2=A01.9M =C2=A0 =C2=A0nvi > =C2=A0556K =C2=A0 =C2=A0ex-vi > =C2=A0505K =C2=A0 =C2=A0mg > > =C2=A0$ size * > =C2=A0 =C2=A0 text =C2=A0 =C2=A0data =C2=A0 =C2=A0 bss =C2=A0 =C2=A0 dec = =C2=A0 =C2=A0 hex filename > =C2=A0 329080 =C2=A0 =C2=A01952 =C2=A0 =C2=A04528 =C2=A0335560 =C2=A0 51e= c8 nvi > =C2=A0 175675 =C2=A0 =C2=A05048 =C2=A0233024 =C2=A0413747 =C2=A0 65033 ex= -vi > =C2=A0 128570 =C2=A0 =C2=A09760 =C2=A0 10184 =C2=A0148514 =C2=A0 24422 mg nvi is a rewrite of the original vi, so this only shows that the new implementation uses more symbols. The actual binary results are just a 120K difference. > >> I'm not sure whether the FreeBSD system administrators (who opens 100 >> ssh sessions) agree with that to replace the nvi in base system with >> this one. > > Do they expect more features beyond POSIX vi? Like multiple windows. This has been discussed y other BSDs before. > >> However, it's source code can be a great reference for a mbyte-capable >> nvi. > --=20 Zhihao Yuan The best way to predict the future is to invent it.