Thanks, great, I can use it with mouse now.

And one last wish, can I popup it in TUI via ':popup ...' command in vimscript ?
Or something like `:call inputlist()` but use popup menu to select item.

在 2018年3月5日星期一 UTC+8下午5:56:07,Bram Moolenaar写道:
> Wei Zhang wrote:
> 
> > Seems cool, but how to use this right-click popup menu ?
> > 
> > have tried: 
> > 
> > 1. click right mouse botton on text: it switched to visual mode
> > 2. shift+left/right botton: no use
> > 3. execute ":popup PopUp" : Sorry, the command is not available in this 
> > version
> > 
> > It doesn't have any documentation yet.
> 
> The popup menu has existed in the GUI for a very long time.
> To use it in a terminal:
>       :set mousemodel=popup
> or
>       :set mousemodel=popup_setpos
> 
> For MS-Windows the default already is "popup" and I checked it works in
> a console.  Unfortunately it doesn't have mouse move events.  Not sure
> if that is a problem of the console or of Vim...  Ah, we drop move
> events in decode_mouse_event().  Should keep them when p_bevalterm is
> set.
> 
> -- 
> I used to wonder about the meaning of life.  But I looked it
> up in the dictionary under "L" and there it was - the meaning
> of life.  It was less than I expected.              - Dogbert
> 
>  /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui