From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 24 03:47:10 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 386B91065673 for ; Thu, 24 Mar 2011 03:47:10 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B411B8FC08 for ; Thu, 24 Mar 2011 03:47:09 +0000 (UTC) Received: by wyf23 with SMTP id 23so9229315wyf.13 for ; Wed, 23 Mar 2011 20:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=0ZUkw6bXukOdmbMp9DDMRbst0k0GCuDC6Z8Wox5dxKw=; b=QSiptlxGUie9ncAxjKoHy81k+oX40tsaBK/CK8qRjar40wyc02L90RK2oX4uLTutKt 4YZVdI+q5W8kFvImQXcKpi7++DPHcxYKHfk+bfncLM6cRc1e0a/H8YxZAnvjzCBCGITk dzWYzcyKjaylOc7C9lRNE7R6Pek5OLmfgimUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=uIToXA5qYChv3LvaSXuOEnNYNbrTo07dKpNpv18qzYhwcsN8mVaxwDZmi3WpeSK+28 M5ZmnBZP7Ec+yCxB1cCVP3HGdDgsonGx1SsEYyqEb4B029DILYZw7oOyxmmbRxlv6CRo CvfbA6ouIEMCON1gHFGNDS3Kxb6i5b1AZygzE= Received: by 10.227.208.73 with SMTP id gb9mr7303614wbb.194.1300938428762; Wed, 23 Mar 2011 20:47:08 -0700 (PDT) Received: from localhost (load-me-in-a-browser-if-this-tor-node-is-causing-you-grief.riseup.net [77.109.139.87]) by mx.google.com with ESMTPS id bs4sm2244040wbb.18.2011.03.23.20.46.58 (version=SSLv3 cipher=OTHER); Wed, 23 Mar 2011 20:47:07 -0700 (PDT) From: Pan Tsu To: Zhihao Yuan References: <86mxkm1erm.fsf@gmail.com> <86aaglx1ow.fsf@gmail.com> Date: Thu, 24 Mar 2011 06:46:53 +0300 In-Reply-To: (Zhihao Yuan's message of "Wed, 23 Mar 2011 20:20:07 -0500") Message-ID: <86k4fpb2oi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-hackers@freebsd.org, Arnaud Lacombe 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: Thu, 24 Mar 2011 03:47:10 -0000 Zhihao Yuan writes: > If you really want to use vi in a 32MB mem environment, the ex-vi may > make sense. It consumes 1600KB memory while nvi consumes 2000KB. Note > that the ee editor uses same amount memory as ex-vi. ex-vi memory usage can be reduced a bit, e.g. by ~20% if you drop -DLISPCODE -DCHDIR -DFASTTAG -DUCVISUAL -DMB -DBIT8 in particular multibyte support. > So basically, if no one disagree that we can drop the infinite undo, > multiple buffer, multiple window and some other potential missing > features, we can replace the nvi in the base system with ex-vi. If the intent is to make all interactive editors in base unicode aware then I wonder if you can use similar excuse when window(1) was kicked out but for missing features, i.e. use ports. As for other editors, ed(1) seems to support editing UTF-8. I've used it to read/edit cyrillic and CJK texts in single user mode before found out about ex-vi. And ee(1)... why not add unicode support there as a GSoC?