Thursday, March 1, 2012

Re: Which runtime files for console vim?

On 2012-03-01, howardb21 wrote:
> I followed your lead below, and got somewhere. Typed, `have' and got
> the following message:
>
> Dictionary completion (^K^N^P) match 1 of 6
>
> but no visual menu of choice. I could scroll through the 6 choices by
> using ctrl-N or ctrl-N. I wonder what options are needed to actually
> see the menu or list, as you did? I am running vim 7.0.237 in conole
> mode (no gui) with these features:
>
> Features included (+) or not (-):
> +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
> +cindent
> +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
> +comments+cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs
> +dnd -ebcdic+emacs_tags +eval +ex_extra +extra_search +farsi
> +file_in_path +find_in_path+folding -footer +fork() +gettext -
> hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
> +linebreak +lispindent +listcmds +localmap +menu+mksession
> +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm-mouse_jsbterm
> +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme-
> netbeans_intg -osfiletype +path_extra +perl +postscript +printer
> +profile+python +quickfix +reltime +rightleft -ruby +scrollbind +signs
> +smartindent-sniff +statusline -sun_workshop +syntax +tag_binary
> +tag_old_static-tag_any_white -tcl +terminfo +termresponse
> +textobjects +title +toolbar +user_commands +vertsplit +virtualedit
> +visual +visualextra +viminfo +vreplace+wildignore +wildmenu +windows
> +writebackup +X11 -xfontset +xim +xsmp_interact+xterm_clipboard -
> xterm_save

I don't know.

I compared the features included in yours with those included in
mine. I didn't see any differences that would affect pop-up menus.

I looked at the README files for the 7.0, 7.1, 7.2 and 7.3 patches
to try to find out when pop-up menus were introduced. They seem to
have been introduced before your version.

I discovered an old version of Vim, 7.0.109, older than yours, on
one of my accounts, and repeated my experiment with the same
results: a pop-up menu displaying the matches found in
/usr/share/dict/words.

Here's something. Take a look at

:help popupmenu-completion

It says:

Vim can display the matches in a simplistic popup menu.

The menu is used when:
- The 'completeopt' option contains "menu" or "menuone".
- The terminal supports at least 8 colors.
- There are at least two matches. One if "menuone" is used.

We know that the first and third conditions are satisfied. Are you
using a monochromatic terminal? What does

:set t_Co?

show? That's the number of colors that Vim thinks your terminal
supports.

Regards,
Gary

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