Gary Johnson wrote:
> On 2008-11-26, Ben Schmidt wrote:
>>> All other mapped key is operate well, but only "<C-J>" key is not
>>> operate. (it's only doing as if I press "return(enter)" in commnd
>>> mode" ==> cursor just moved 1 line below.)
>>>
>>> Please let me know how I can use <C-J> navigation maped key..
>> Unfortunately you can't. C-J and/or C-M is the same as Enter. Likewise
>> C-I is the same as tab, C-[ is the same as Esc. Even in gvim, this is
>> the case, though more for legacy reasons than because it really has to
>> be. Hopefully one day it will change. But it needs quite a bit of
>> development time and effort!
> 
> Unless I misunderstood, I don't think that was the question, Ben.  
> The question was not about <C-J> being indistinguishable from <CR>, 
> but about <C-J> being not mappable at all.  Also, at least with my 
> setup, it's <C-M>, not <C-J>, that's indistinguishable from <CR>.
> 
> I can reproduce the OP's observations--that <C-J> is not 
> mappable--but I have no explanation.

My apologies. It's possibly related to a similar thing: Vim uses C-J
internally to mean a null byte (which as actually C-@; in fact, in
insert mode, press C-V, C-J and you'll see ^@). Nevertheless, I
have just proven that I can map C-J, both in the terminal and in
MacVim; I thought I'd tried before and I couldn't, but I clearly can
now. Vim 7.2.42. So now I'm baffled as to why it doesn't work for
you...

Can you see the mapping in the output of :map? It does for me, but as
<NL> (newline/null). Can you double check it isn't behaving the same as
Enter by mapping that (<CR>) to something else and checking C-J doesn't
trigger that mapping? Does anything happen if you try to map [EMAIL PROTECTED] 
What
do you get in insert mode if you do C-V, C-J? These are just some things
to try...

Ben.




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

Reply via email to