tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vi vs. nvi

On Wed, Jul 23, 2008 at 09:13:47PM +0100, David Laight wrote:
> On Sun, Jul 20, 2008 at 05:21:26PM +0200, Adam Hoka wrote:
> > Open a file with nvi, go to the first line and hit Shift-O.
> > Do you see the same bug as me? It works in old vi.
> Yes.
> Also I added the 'matchchars' option to vi in order to remove '<' and '>'
> from the characters matched by '%'.
> Historically only "()[]{}" were matched by '%' although "<>" might be
> useful in some languages, they are not in C.
> In particular I often (yes often!) type c% at the start of xx->yy(zz)
> and the '>' needs to be ignored.

Another bug ...

When 'vi' askes for 'press any key to continue' after opening a file
(eg because the filename is too long)
the command keys (eg '/' and ':') have always been acted on as well.


David Laight:

Home | Main Index | Thread Index | Old Index