0

I have used the following options in my *.vimrc to get the command completion:

" -- Show matching options in the airline
set wildmenu
set wildmode=list:longest,full
set showcmd
" --

When used alongside the airline plug-in, the results are odd:

  • I'm getting the desired single-line bar with all the options
  • Additionally, all options are listed again above, as shown:

enter image description here

How can I only keep the single line scroll bar with all the matching options?

Community
  • 1
  • 1
Konrad
  • 17,740
  • 16
  • 106
  • 167

2 Answers2

2

What you have in that screenshot is in line with the value you set for wildmode so… Vim does exactly what you tell it to do. If you want another behavior you will have to experiment with the different possible values.

From :help 'wildmode':

"list:longest"  When more than one match, list all matches and
                complete till longest common string.

Basically, you will get that unwanted (but explicitly requested) columnar list as long as you keep list in your 'wildmode'.

IMO, the only usable value is full.

Also, this question has nothing to do with vim-airline.

romainl
  • 186,200
  • 21
  • 280
  • 313
0

@romainl, thanks for the contribution. For the record, the desired behaviour can be obtained with use of the following settings:

 " -- Command menu in one line
 set wildmenu
 set wildmode=full
 " --

all comands shwoing in one line

Konrad
  • 17,740
  • 16
  • 106
  • 167