On 2012-03-01, howardb21 wrote:
> On Mar 1, 7:05 pm, Gary Johnson <[email protected]> wrote:
> > On 2012-03-01, howardb21 wrote:
> 
> >     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?
> 
> Yes, I know about that. I set completeopt=menu,menuone
> Intereestingly t_Co? gives an empty value, although my samsung monitor
> has plenty of colors.

That's the problem then.  With t_Co empty, Vim thinks that your
terminal doesn't support colors and therefore doesn't display that
menu.

> Something I omitted: Vim runs the menus fine on
> my local computer. I was asking about vim that resides on a university
> computer running redhat linux, that I secure telnet into. There - no
> menu. However, the spell check when I :set spell does give a numbered
> menu, which appears to happen by vim cleaing the current screen and
> replacing it with the menu of spelling suggestions.
> 
> The telnet session tells redhat to use vt100 emulation. I had trouble
> with vim's screen behaviour under emulations like vt102 vt360, ansi,
> linux etc.

You should set TERM on the remote computer to match the capabilities
of the terminal you are using on the local computer.  These days,
setting TERM=xterm usually works pretty well.  Some systems'
terminfo databases think that xterm doesn't support colors.  I don't
think any Red Hat system should have that problem.  If setting
TERM=xterm still gives you nothing for t_Co, you can either search
/usr/share/terminfo/x/ for a file named something like xterm-color
and set TERM to that name, or you can set t_Co=8 or to whatever
number of colors you think your terminal supports.  See

    :help xterm-color

for more on this.

> Perhaps it is hard to send popup screen info. to a remote computer
> over the internet?

It is certainly not a problem over the Internet, but it could be a
problem over a very slow connection.  I remotely log in to various
computers all over the U.S. and never have a speed problem.  In
fact, that Vim 7.0 installation I tested for this problem was on a
computer 300 miles away.

> Or, the standard vt100 terminfo entries probably do
> not include colors. Why I wonder are colors needed to display a menu?

That I don't know.

> It is always hard for me to pick an emulation that vim likes for most
> functions. Any suggestions?

As I wrote above, xterm usually works well.  If I'm using PuTTY on
Windows as my terminal, I sometimes have to change some of its
settings to get everything working correctly.

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

Reply via email to