Friday, August 28, 2009

RE: map to in command line

Simson Liu wrote:
> I'm have trouble with the following command:
> noremap! <A-[> <Esc>

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


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

No comments:

Post a Comment