aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-01-03 18:05:04 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-01-04 12:13:49 +0100
commit166b4284c83a6be993be6b185d5ecd168570c7ff (patch)
tree406a747b7e61536da09bfff6d64a35bd2916ff73
parent39ea076f2fa1b542efa85e4128a63b8a4da371fe (diff)
downloadrneovim-166b4284c83a6be993be6b185d5ecd168570c7ff.tar.gz
rneovim-166b4284c83a6be993be6b185d5ecd168570c7ff.tar.bz2
rneovim-166b4284c83a6be993be6b185d5ecd168570c7ff.zip
vim-patch:b1392bee701d
runtime(doc): document that the diff filetype uses Diff hl groups related: vim/vim#13776 https://github.com/vim/vim/commit/b1392bee701d887b66b596c9af26bfcb6f0614b8 Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/doc/syntax.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 40c102341b..36ce0297f3 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1224,7 +1224,7 @@ To highlight KDE-reserved features, set >
g:desktop_enable_kde follows g:desktop_enable_nonstd if not supplied
-DIFF *diff.vim*
+DIFF *diff.vim* *ft-diff-syntax*
The diff highlighting normally finds translated headers. This can be slow if
there are very long lines in the file. To disable translations: >
@@ -1233,7 +1233,15 @@ 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