On 04/02/09 09:44, pansz wrote:
> Hi,
>
> For me the Keypad works great so long as I use only console vim. Today I
> compiled my vim 7.2.93 to have gtk2 support (kubuntu8.04), and found
> that in gvim the KPEnter (Enter on Keypad) does not work as desired.
>
> Press the KPEnter in gvim simply put the cursor to the next line, not
> activate a plugin function. So I cannot use the KPEnter to navigate in
> netrw Plugin or any kind of vim plugin.
>
> I tried press Ctrl-V before press KPEnter and gvim shows ^M, so I use
>
> :nmap ^M<cr>
>
> which does not help,
>
> In fact, I tried many combinations and it seems that I cannot map
> KPEnter to anything, no matter what I mapped, the KPEnter always enter
> the next line.
>
> Any work around?

^M is the normal Ctrl-M code, a synonym of the Enter key. The keypad 
Enter is normally a synonym of the latter, but in some circumstances 
they can be mapped separately, keypad-Enter being <kEnter>.

On my gvim 7.2.91 with GTK2/Gnome2 GUI, I see the same as you do: 
hitting the "normal" Enter in a netrw buffer opeens the file or 
directory under the cursor, while the keypad Enter just moves one line 
down... BUT - after I enter

        :map  <kEnter>  <CR>

the keypad Enter again behaves the same as the normal Enter.


Best regards,
Tony.
-- 
Hardly a pure science, history is closer to animal husbandry than it is
to mathematics, in that it involves selective breeding.  The principal
difference between the husbandryman and the historian is that the
former breeds sheep or cows or such, and the latter breeds (assumed)
facts.  The husbandryman uses his skills to enrich the future; the
historian uses his to enrich the past.  Both are usually up to their
ankles in bullshit.
                -- Tom Robbins

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

Reply via email to