On Jan 19, 3:07 pm, Martin <[email protected]> wrote:
> On 22:18 Mon 19 Jan , Sean wrote:
>
>
>
> > > > This is a feature request for selecting by number key of keyboard,
> > > > not try to find an alternative way :)
> > We have a workaround, by mapping number keys only when popup menu is
> > visible.
> > It works great: http://maxiangjiang.googlepages.com/vimim.gif
>
> > Thanks
>
> > Sean
>
> This is really great! I want to have it too! How do you do it?
>
> Best regards
>
> Martin
Please take a look at
http://maxiangjiang.googlepages.com/vimim.html
No problem if you don't understand Chinese. Just check the pictures,
and follow the first or 2nd link to get the code. The code looks
like (around line 452)
-----------------------------------------------------------
for word in oneline_list
let complete_items = {}
let abbr = printf('%2s',label) . "\t" . word
let complete_items["word"] = word
if g:vimim_enable_number_label ||
g:vimim_popup_label_start
let complete_items["abbr"] = abbr
endif
let complete_items["menu"] = menu
let complete_items["dup"] = 1
let label = label + 1
call add(popupmenu_list, complete_items)
endfor
-----------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---