Vi and Vim Asked by Dov Alperin on January 4, 2021
:set completeopt=menuone
does not always show the menu. For example pressing :vs<tab>
on the command line one would expect the menu to appear, with the singular option vsplit
. What happens instead is vsplit
is imediately completed. How can I prevent this, and instead always show the menu even with only one valid completion?
The 'completeopt'
option only applies to Insert mode completion, which is not really the case when you're completing an Ex command on the Vim command-line.
The completion menu on the Vim command-line is enabled by 'wildmenu'
and controlled with the 'wildmode'
option.
But the 'wildmode'
option doesn't support any setting that will display the completion menu when there's a single candidate for completion. From :help 'wildmode'
:
When there is only a single match, it is fully completed in all cases.
Correct answer by filbranden on January 4, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP