Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim: Use insert-mode-like completion for command completion

Is it possible to use a vertical command line completion just the way it appears when using CTRL-N in insert mode?

like image 846
madmax1 Avatar asked Apr 08 '26 22:04

madmax1


2 Answers

I personally like

set wildmode=longest,list

It behaves sort of like bash completion. (It also shows the same information as <c-d> when you hit <tab>).

like image 79
FDinoff Avatar answered Apr 12 '26 17:04

FDinoff


You can have such a menu when doing completion in the command-line window (q:) but you can't have it in the command-line itself.

But set wildmenu (see also :help wildmode) is good enough in my opinion.

like image 21
romainl Avatar answered Apr 12 '26 18:04

romainl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!