Wednesday, August 26, 2009

Re: Aliasing ex commands for typos

Danny Colligan 写道:
> 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.

It is tedious to map *all* command with capitalized version.

My solution is to map the semicolon to colon

:nnoremap ; :

you can map something else to ; if you really need it, I don't use the
semicolon at all.

PS: The original VI is designed for a keyboard which colon is a single
key, no need to press 'shift'.


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

No comments: