On 5/18/07, Tony Finch <[email protected]> wrote:
On Thu, 17 May 2007, Zach White wrote:
>
> -Zach (Who's still upset that there's no way he can use nvi's multi-level
> undo model when stuck in vim)
Oh you can, except the key bindings are helpfully different. In
proper^Wnvi, to undo multiple times you type u.... (just like to do
anything multiple times you type .... after the original action), and to
undo/redo/undo/redo you type uuuu. In bloated^Wvim, to undo multiple times
you type uuuu and to undo/redo/undo/redo you type u... OBVIOUSLY.
Oh, and the behaviour is different depending on whether or not
'compatible' is set -- which is sensitive to such little things such
as whether a .vimrc exists or not.
Always bites me when I use a vim somewhere and wonder why it doesn't
behave like my vim. Especially when it is on one of my machines, but
one I haven't used before and haven't set up a .vimrc for yet, so it's
suddenly more vi-compatible and doesn't understand multiple-undo.
Cheers,
--
Philip Newton <[email protected]>