Friday, August 28, 2009

RE: map to in command line

John Beckett wrote:

> You might want to look over:
> http://vim.wikia.com/wiki/Esc
>
> which points out that Ctrl-[ is already Esc so mapping Alt-[
> might not be necessary.
>
> However, you do have a point, illustrated here:
>
> :cnoremap qq <Esc>
> :echo helloqq
>
> As soon as the second 'q' is pressed, the :echo command
> complains because no variable named 'hello' exists. That is, the
> qq was mapped to something, and it terminated the command, but
> it did not cancel it.
>
> John

Thanks the suggestion. The Alt key just to be more handy than Ctrl key
for me.

Regards,
Liu

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

No comments: