Monday, April 16, 2012

Re: How to map in maemo's vim

On Mon, 16 Apr 2012 08:51:06 +0800, Chris Jones <cjns1989@gmail.com> wrote:

> On Sun, Apr 15, 2012 at 07:50:38PM EDT, Yue Wu wrote:
>> On Mon, 16 Apr 2012 05:26:01 +0800, Chris Jones <cjns1989@gmail.com>
>> wrote:
>>
>> >On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote:
>
>> >> I'm using vim on maemo, which is a OS for nokia's n900 smartphone.
>> >>
>> >> I'm trying to map ctrl-space to a function, but nmap <ctrl-space>
>> >> :call Myfunc()<CR> does nothing. When I hit <C-v><ctrl-space> in
>> >> insert mode, vim inputs ^@, so I also tried with nmap ^@ :call
>> >> Myfunc()<CR>, but still not work, what should I do?
>> >
>> > Try:
>> >
>> > :map <C-@> :call Myfunc()<CR>
>> >
>> > CJ
>> >
>>
>> Thank you, it works fine :)
>
> The only caveat being that I can only hope it doesn't break anything in
> your setup. I use <Ctrl-Space> to switch desktops, so in my case, Vim
> never gets to see it.
>
> | :h keycodes
> | :h index
> | :h map-special-chars
> | :h map-which-keys
>
> CJ
>

Maemo doesn't use <ctrl-space> to switch desktops :) Can it?


--
Regards,
Yue Wu

State Key laboratory of Natural Products and Functions
Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: