Dave McCooey wrote:
On Sep 27, 2006, at 6:33 PM, A.J.Mechelynck wrote:
Dave McCooey wrote:
Hi all,
Does anyone know if it's possible to disable the numbered undo capability?
For example, is it possible to make a key sequence like "78u" do nothing
rather than performing 78 undoes?
Multiple undo (by hitting the 'u' key repeatedly) is extremely useful,
and should still function.
Best Regards,
Dave

    :map    u    <C-\><C-N>u

will clear any count when you hit u

Best regards,
Tony.

Thanks, Tony.

I tried your suggestion, but after I do that :map command,
whenever I hit 'u' or '#u', vim goes into an infinite loop,
and I must kill the process from another shell.

Is the syntax you gave correct, or could it be that it will
only work if specified in the _vimrc file?

-Dave


Oops. Use ":noremap" rather than ":map"


Best regards,
Tony.

Reply via email to