Commit: runtime(doc): document gitcommit_summary_length

0 views
Skip to first unread message

Christian Brabandt

unread,
3:47 PM (6 hours ago) 3:47 PM
to vim...@googlegroups.com
runtime(doc): document gitcommit_summary_length

Commit: https://github.com/vim/vim/commit/f3cba4a2050acf4d9b4be2fd8395e6598a53d133
Author: Christian Brabandt <c...@256bit.org>
Date: Tue Apr 7 19:37:14 2026 +0000

runtime(doc): document gitcommit_summary_length

related: https://github.com/vim/vim/issues/19905

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
index 6a7fa3b59..3aa41db21 100644
--- a/runtime/doc/filetype.txt
+++ b/runtime/doc/filetype.txt
@@ -1,4 +1,4 @@
-*filetype.txt* For Vim version 9.2. Last change: 2026 Mar 24
+*filetype.txt* For Vim version 9.2. Last change: 2026 Apr 07


VIM REFERENCE MANUAL by Bram Moolenaar
@@ -652,6 +652,13 @@ One command, :DiffGitCached, is provided to show a diff of the current commit
in the preview window. It is equivalent to calling "git diff --cached" plus
any arguments given to the command.

+
+The length of the first line of the commit message used for
+syntax highlighting can be configured via `g:gitcommit_summary_length`.
+The default is 50. Example: >
+
+ let g:gitcommit_summary_length = 70
+
GIT REBASE *ft-gitrebase-plugin*

The gitrebase filetype defines the following buffer-local commands, to help
Reply all
Reply to author
Forward
0 new messages