NeoSolarized icon indicating copy to clipboard operation
NeoSolarized copied to clipboard

Only add the "GUIEnter" autocommand if the GUI is not already active.

Open cypheon opened this issue 5 years ago • 0 comments

In case the GUI is already loaded, the autocommand is definitely not needed and may in some cases lead to overwriting manual changes to the highlighting groups.

For example, when using VimR, the GUIEnter autocommand is triggered after the ColorScheme autocommands, which means that the colorscheme is reloaded. This prevents the user from overriding single highlight groups in .vimrc like autocmd VimEnter,Colorscheme * :hi Cursor guibg=#ff0000

cypheon avatar Apr 18 '20 10:04 cypheon