[vim/vim] gvim windows: allow colorscheme to be applied before VimEnter autocommand (Issue #20757)

7 views
Skip to first unread message

Maxim Kim

unread,
Jul 12, 2026, 9:26:50 PM (2 days ago) Jul 12
to vim/vim, Subscribed
habamax created an issue (vim/vim#20757)

Some plugins define VimEnter autocommands that are way slower in Windows compared to other OSes. E.g. gutentags, yegappan/lsp.

If your vimrc has a colorscheme with background other than white, then gvim on start up blinks white before switching background to what is in colorscheme.

Consider following silly reproducible steps:

test.vim

let a = 10

Run the following:

gvim --clean +"hi normal guibg=black guifg=white" +"au vimenter * for x in range(1000) | so test.vim | endfor"

Gvim window would be white for a bit and then switch to black:

gvim-blink.gif (view on web)

Describe the solution you'd like

Describe alternatives you've considered
The alternative is not using the plugins with expensive VimEnter autocommands or use white background colorschemes in Windows Gvim.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20757@github.com>

Reply all
Reply to author
Forward
0 new messages