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

I am using YouCompleteMe for identifier completion in Vim. I would like to limit the size of the completion popup so that it is never more than 5 entries. Can this be done?

share|improve this question
What does the plugin's documentation say on that matter? – romainl Jun 23 '14 at 19:23
@romainl That linked page is the documentation; as far as I can tell it is silent on the matter. – Owen Jun 23 '14 at 19:47
So you already have your answer. – romainl Jun 23 '14 at 19:55
up vote 0 down vote accepted

The 'pumheight' option sets the maximum height of the menu. It doesn't restrict the number of suggestions, though. Only the script responsible for gathering those suggestions and feeding them into the completion menu can decide how many suggestions to display.

If YCM doesn't do that, send the author a formal feature request.

share|improve this answer

You must log in to answer this question.

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