Firstly, Im using NeoVim (as you can tell by the
winhighlight command). When entering the command line by pressing
:, I change the command line window foreground/background. The following very ugly hack works for me:
augroup mythemecmdLine autocmd! autocmd CmdlineEnter : set winhighlight=Normal:Normal | redraw | hi! Normal guifg=black guibg=white autocmd CmdlineLeave : hi Normal guifg=white guibg=black augroup END
It relies on the rest of the screen not being redrawn until exiting the command line window. What I dont understand the difference between
CmdwinEnter. The above code only works for the former. Reading the
:help on each one leaves me with the impression that
CmdwinEnter is only triggered when one types commands, whereas
CmdLineEnter is triggered by scripts too. However with my code snipped above, even when I type
: the autocmd
CmdwinEnter is not fired.
Reading the help I can't figure out what the distincition is between the command line and command line window, my impression is they are the same thing, which I assume must be a wrong assumption.
I can't get
CmdwinEnter to fire, so what is it's purpose?