On Nov 5, 12:27 pm, "yosi izaq" <[EMAIL PROTECTED]> wrote:
> I often make the mistake of typing w1 instead of w!.
> Can you please suggest how to map w1 to w!?
>
> TIA
>
I use this:
http://vim.wikia.com/wiki/Replace_a_builtin_command_using_cabbrev
For much the same purpose you want it for:
" correct common command typos
CommandCabbr q1 q!
CommandCabbr q!@ q!
CommandCabbr q!~ q!
CommandCabbr [EMAIL PROTECTED] q!
CommandCabbr q~! q!
CommandCabbr qa1 qa!
CommandCabbr qa!@ qa!
CommandCabbr [EMAIL PROTECTED] qa!
CommandCabbr qa!~ qa!
CommandCabbr qa~! qa!
CommandCabbr w1 w!
CommandCabbr w!@ w!
CommandCabbr [EMAIL PROTECTED] w!
CommandCabbr w!~ w!
CommandCabbr w~! w!
CommandCabbr w@ w!
CommandCabbr w~ w!
CommandCabbr w- w
CommandCabbr w= w
CommandCabbr w\\ w
CommandCabbr make@ make!
CommandCabbr [EMAIL PROTECTED] make!
CommandCabbr make!@ make!
(If some of these look strange, I'm using a US-Dvorak keyboard, where
the - and = keys are also very close to the <enter> key)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---