Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can you make gvim do tab completion like the terminal-based vim?

The terminal-based vim displays suggestions instead of auto-completing with the first result in the folder and cycling through those.

share|improve this question
up vote 3 down vote accepted

This behavior is determined by the 'wildmode' option. The default value is "full", which will give you the behavior you're seeing in gvim. If it is set to something like "longest,list" instead, you will get the behavior you're seeing in terminal vim. I'm not sure about the settings because as you can see in

:help 'wildmode'

there are several settings and combinations of settings to choose from and some combinations behave similarly.

You can see the values of the 'wildmode' option that your gvim and vim are using by executing

:set wildmode?

and you can find where the setting was made by executing

:verbose set wildmode?

It appears to me that your gvim and vim are using different configuration files.

share|improve this answer

Can you be more specific? Vim has the ability to complete different things in different contexts.

However, gVim should behave very similarly to console Vim, as long as it is sourcing the same configuration files. To verify this, you can run the command ":scriptnames" in both Vim and gVim.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .