On 11/06/09 20:49, [email protected] wrote:
>
>
> Hi,
>
> I am often using :wa to save all source files which
> are open to save to disk.
> On a keyboard with german layout ":" is a key, which
> is reachable via pressing shift-.
> Unfortunately it seems, that my right hand is slower
> than my left one for an unknown reason so I
> type :Wa instead of :wa a several thousand times
> a day ;)
>
> My experiments to map :Wa to :wa failed. Something
> very stupid I doing wrong.
>
> I thank you very much for any help in advance!
> Kind regards.
> mcc
>
>

Maybe map a different {lhs}? I use

        :map    <F3>    :wa|wv<CR>

Vary to taste. :-)

Or, for your original idea (untested):

if version < 700
        cnoreabbrev     Wa      wa
else
        cnoreabbrev     <expr>  Wa
                \ ((getcmdtype() == ':' && getcmdpos() <= 3)?
                        \ 'wa' : 'Wa')
endif


Best regards,
Tony.
-- 
Hummingbirds never remember the words to songs.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to