aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-01-10 18:45:46 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-01-12 13:52:26 +0100
commitf46ae1368530389129b5f7f1768c057d5d0b9c2f (patch)
tree1b2f15d93aca78a202a599a59dc114f60701891e /runtime/doc
parent3bcf8e5622f29a65564bf2f7672997432e183dfa (diff)
downloadrneovim-f46ae1368530389129b5f7f1768c057d5d0b9c2f.tar.gz
rneovim-f46ae1368530389129b5f7f1768c057d5d0b9c2f.tar.bz2
rneovim-f46ae1368530389129b5f7f1768c057d5d0b9c2f.zip
vim-patch:9.1.0016: default diff highlighting is too noisy
Problem: default diff highlighting is too noisy Solution: Link diff highlighting groups to new Added/Removed/Changed, revert previous change (Romain Lafourcade) Remove diff* links added in vim/vim#13776 and doc added in commit b1392be The links added in vim/vim#13776 are way too noisy for the contexts in which the `diff` syntax is applied (git commits, patches, etc.). This commit: - removes those links - adds new default highlighting groups Added, Changed and Removed - links the diff highlighting groups to those new defaults - removes the doc changes - adjusts the syntax_completion test for those newly added group names Note: Changes to the default color schemes will be handled separately, by adding links to those newly created Added/Removed/Changed highlighting groups. related: vim/vim#13776 closes vim/vim#13825 https://github.com/vim/vim/commit/124371c5a149a8c0c75c04b6c90ac11e71a0aa97 Co-authored-by: Romain Lafourcade <romain.lafourcade@razorfish.fr>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/syntax.txt15
1 files changed, 5 insertions, 10 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 84121be4d6..8cbb958e35 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -243,6 +243,10 @@ Error any erroneous construct
Todo anything that needs extra attention; mostly the
keywords TODO FIXME and XXX
+Added added line in a diff
+Changed changed line in a diff
+Removed removed line in a diff
+
The names marked with * are the preferred groups; the others are minor groups.
For the preferred groups, the "syntax.vim" file contains default highlighting.
The minor groups are linked to the preferred groups, so they get the same
@@ -1224,7 +1228,7 @@ To highlight KDE-reserved features, set >
g:desktop_enable_kde follows g:desktop_enable_nonstd if not supplied
-DIFF *diff.vim* *ft-diff-syntax*
+DIFF *diff.vim*
The diff highlighting normally finds translated headers. This can be slow if
there are very long lines in the file. To disable translations: >
@@ -1233,15 +1237,6 @@ there are very long lines in the file. To disable translations: >
Also see |diff-slow|.
-Since the Vim 9.1 release the diff filetype links the diffAdded,
-diffRemoved and diffChanged highlighting groups to |hl-DiffAdd|,
-|hl-DiffDelete| and |hl-DiffChange| by default. If you do not want this, you
-can change it to the previous groups like this in your |vimrc| >
-
- hi link diffRemoved Special
- hi link diffChanged PreProc
- hi link diffAdded Identifier
-<
DIRCOLORS *dircolors.vim* *ft-dircolors-syntax*
The dircolors utility highlighting definition has one option. It exists to