Wednesday, August 26, 2009

Re: Aliasing ex commands for typos

On Aug 26, 4:27 pm, Vlad Dogaru <ddv...@rosedu.org> wrote:
> On Wed, 26 Aug 2009 06:39:12 -0700
>
> Danny Colligan <dannycolli...@gmail.com> wrote:
>
> > Hello,
>
> > In ex mode, I often make the typo of having the first letter of the
> > command capitalized (for instance, ":Set nu" instead of ":set nu")
> > since my finger is still on the shift key after typing the colon.
>
> You might want to try :cmap Set set, but it has its drawbacks, such as
> a timeout to the whole thing.
>

I actually use cabbrev for this purpose.

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

No comments: