Sunday, April 15, 2012

Re: How to map in maemo's vim

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 :)

--
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: