vim-airline icon indicating copy to clipboard operation
vim-airline copied to clipboard

Airline prevent the guioptions+=! to work propertly

Open vds2212 opened this issue 1 year ago • 4 comments

The support of the guioptions: ! seems to be broken.

Step to reproduce the problem:

  1. set guioptions+=!
  2. :!echo foo

The output is at the bottom of the screen:

:!echo foo

press ENTER or type command to continue

Image

The expected output is:

:!echo foo

foo

press ENTER or type command to continue

Image

OS: Windows 10 Vim version: gVim 9.1 patches 1-718

vds2212 avatar Feb 07 '25 19:02 vds2212

Oh, that is indeed puzzling. I have no idea why airline would cause this

chrisbra avatar Feb 07 '25 20:02 chrisbra

Interestingly, I see the exact opposite when starting gvim --clean (so without airline being involved)

:!echo foo

press ENTER or type command to continue
:set guioptions+=!
:!echo foo

foo

press ENTER or type command to continue

There must be a bug in Vim somewhere.

chrisbra avatar Feb 07 '25 20:02 chrisbra

Hi Christian,

Thanks for your feedback.

On my end on Windows 10 With both gVim 9.1.0718 and gVim 9.1.1076

Without vim-airline I have the correct behavior with:

gVim --clean
:set guioptions+=!
:!echo foo

foo

press ENTER or type command to continue

But the odd behavior when vim-airline is activated:

:!echo foo

press ENTER or type command to continue

The minimal vimrc file to reproduce the problem is:

set nocompatible
set guioptions+=!

call plug#begin()
 Plug 'vim-airline/vim-airline'
call plug#end()

Running gVim with the following options:

gVim.exe -u "vimrc.vim" -U NONE -i NONE

vds2212 avatar Feb 08 '25 11:02 vds2212

On my end on Windows 10 With both gVim 9.1.0718 and gVim 9.1.1076

I have the correct behavior with

gVim --clean
:set guioptions+=!
:!echo foo

foo

press ENTER or type command to continue

But the odd behavior when vim-airline is activated:

:!echo foo

press ENTER or type command to continue

vds2212 avatar Feb 08 '25 11:02 vds2212