Re: map to in command line

2009-08-30 Thread Simson Liu
Matt Wozniski wrote: > > > > Jürgen Krämer wrote: > > > >> this is VI-compatible behavior. In VI pressing on the command > >> line executed the command. The only way to cancel a command was to > >> press Ctrl-C. You should thus > >> > >>   :nmap > >> > >> For more information > >> > >>   :he

Re: map to in command line

2009-08-28 Thread Matt Wozniski
On Fri, Aug 28, 2009 at 6:00 AM, Simson Liu wrote: > > Jürgen Krämer wrote: > >> this is VI-compatible behavior. In VI pressing on the command >> line executed the command. The only way to cancel a command was to >> press Ctrl-C. You should thus >> >>   :nmap >> >> For more information >> >>  

RE: map to in command line

2009-08-28 Thread Simson Liu
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 > :echo helloqq > > As soon as the second '

RE: map to in command line

2009-08-28 Thread Simson Liu
Jürgen Krämer wrote: > this is VI-compatible behavior. In VI pressing on the command > line executed the command. The only way to cancel a command was to > press Ctrl-C. You should thus > > :nmap > > For more information > > :help c_ > :help c_ > > Regards, > Jürgen > cnoremap

Re: map to in command line

2009-08-28 Thread Jürgen Krämer
Hi, Simson Liu wrote: > > I'm have trouble with the following command: > > noremap! > > In Insert mode, the mapping is OK. I can exit insert mode by Alt-[ > But in command-line mode, the mapping has some problems. Such as > > :ls "note the is Alt-[ key > > the 'ls' command is a

RE: map to in command line

2009-08-28 Thread John Beckett
Simson Liu wrote: > I'm have trouble with the following command: > noremap! 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 :echo

map to in command line

2009-08-28 Thread Simson Liu
Hi all, I'm have trouble with the following command: noremap! In Insert mode, the mapping is OK. I can exit insert mode by Alt-[ But in command-line mode, the mapping has some problems. Such as :ls "note the is Alt-[ key the 'ls' command is always been exectued! The normal action