Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.