diff options
| author | Gregory Anders <greg@gpanders.com> | 2021-07-27 10:46:24 -0600 |
|---|---|---|
| committer | Gregory Anders <greg@gpanders.com> | 2021-07-27 14:14:30 -0600 |
| commit | 9afa0d25a66f849452f498bd45e2f443f5010635 (patch) | |
| tree | 08dc4ca54b512fecc886c17c9aac77dd8a3abce6 /runtime/syntax/synload.vim | |
| parent | c642f3ac27aa842e374334d11291fd5129ab6887 (diff) | |
| download | rneovim-9afa0d25a66f849452f498bd45e2f443f5010635.tar.gz rneovim-9afa0d25a66f849452f498bd45e2f443f5010635.tar.bz2 rneovim-9afa0d25a66f849452f498bd45e2f443f5010635.zip | |
fix(highlight): remove syncolor.vim
Remove syncolor.vim in favor of defining the default highlight groups
directly in `init_highlight`. This approach provides a number of
advantages:
1. The highlights are always defined, regardless of whether or not the
syntax regex engine is enabled.
2. Redundant sourcing of syntax files is eliminated (syncolor.vim was
often sourced multiple times based on how the user's colorscheme file
was written).
3. The syntax highlighting regex engine and the highlight groups
themselves are more fully decoupled.
4. Removal of the confusing `:syntax on` / `:syntax enable` dichotomy
(they now both do the same thing).
This approach also correctly solves a number of bugs related to
highlighting (#15176, #12573, #15205).
Diffstat (limited to 'runtime/syntax/synload.vim')
| -rw-r--r-- | runtime/syntax/synload.vim | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/runtime/syntax/synload.vim b/runtime/syntax/synload.vim index aee9ba8b8e..bfcd3b06da 100644 --- a/runtime/syntax/synload.vim +++ b/runtime/syntax/synload.vim @@ -14,11 +14,6 @@ endif " let others know that syntax has been switched on let syntax_on = 1 -" Set the default highlighting colors -if !exists("colors_name") && !exists("did_syncolor") - runtime! syntax/syncolor.vim -endif - " Line continuation is used here, remove 'C' from 'cpoptions' let s:cpo_save = &cpo set cpo&vim |