tech-userlevel archive

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

Re: vi vs. nvi



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.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index