Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cypheon
Copy link

@cypheon cypheon commented Apr 18, 2020

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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant