Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2011 10:43:52 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Zhihao Yuan <lichray@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Paul Schenkeveld <freebsd@psconsult.nl>
Subject:   Re: [GSoC] About the idea: Unicode support in vi
Message-ID:  <20110326094352.GJ65750@cicely7.cicely.de>
In-Reply-To: <AANLkTimUA2y8c2rMSpGH9z0fRq47KNka=qUMZgTi9D=5@mail.gmail.com>
References:  <86mxkm1erm.fsf@gmail.com> <AANLkTin3Wki6bnriNgWUy5JC68MDMVc4Y444tGWcKBQ7@mail.gmail.com> <86aaglx1ow.fsf@gmail.com> <AANLkTikLbU--J2aVa00tzxWb9GAvjfGnUGovwYaXXqhp@mail.gmail.com> <AANLkTimKzTrLA%2BW4a73D=aS8fy9npeqvrS8Ua3oNKrjf@mail.gmail.com> <AANLkTin=Y-z-Rt0cnd3MRg0JoSWJmhC3Uh2b32Bosgfi@mail.gmail.com> <AANLkTimDnA6jdj-MR7J2EGAQFn=%2BRrS9h32N5UWkaDUs@mail.gmail.com> <AANLkTinuQG2ew4R81861Ei7Czds0pGVFaD4ExheFpnnE@mail.gmail.com> <20110326084537.GA18254@psconsult.nl> <AANLkTimUA2y8c2rMSpGH9z0fRq47KNka=qUMZgTi9D=5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 26, 2011 at 03:55:12AM -0500, Zhihao Yuan wrote:
> On Sat, Mar 26, 2011 at 3:45 AM, Paul Schenkeveld <freebsd@psconsult.nl> wrote:
> > On Wed, Mar 23, 2011 at 08:20:07PM -0500, Zhihao Yuan wrote:
> >> On Wed, Mar 23, 2011 at 7:26 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> >
> > I like the idea of adding Unicode support to nvi but I hate the idea of
> > replacing nvi in the base system by something else.  I've been there
> > before, when administering a heterogenous environment with Unix, BSD and
> > Linux systems, being a heavy user of vi, it's frustrating if commands in
> > various versions of vi do not behave *exactly* the same, e.g. different
> > versions of vi leave the cursor in different places after undo, the
> > effect of the repeat command (.) after an undo command, the availability
> > or not to do something like /pattern/z. to find and position the found
> > text in the middle of the screen so you can immediately see the context.
> >
> > Administering hundreds of FreeBSD systems at various sites would become
> > a nightmare if frequently used utilities in the base system do not
> > behave exactly the same between different builds, a true POLA violation
> > I think.  I truly hope that adding unicode to nvi doesn't change the
> > behaviour of nvi, at least not when not using actually Unicode.
> 
> I will improve nvi only, and I won't break the traditional functions.
> But your words reminds me that, perhaps the move of cursor is a
> problem for a mbytes-enabled vi. We will see.

It especially is if characters are double wide on output, which happens
at least with some chinese ones.

I really hope you will find a mentor soon enough.

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110326094352.GJ65750>