]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(help): highlight CTRL-<Key> correctly
authorChristian Brabandt <cb@256bit.org>
Tue, 8 Oct 2024 18:20:23 +0000 (20:20 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 8 Oct 2024 18:20:23 +0000 (20:20 +0200)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/insert.txt
runtime/syntax/help.vim

index 3894e5c74c8a28c7be1271d5d312f67c869d0228..a954eef0b8df025733d697fc3897e7659874b806 100644 (file)
@@ -1,4 +1,4 @@
-*insert.txt*    For Vim version 9.1.  Last change: 2024 Aug 25
+*insert.txt*    For Vim version 9.1.  Last change: 2024 Oct 08
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -51,7 +51,7 @@ char          action  ~
                abbreviation.
                Note: If your <Esc> key is hard to hit on your keyboard, train
                yourself to use CTRL-[.
-               If Esc doesn't work and you are using a Mac, try CTRL-Esc.
+               If Esc doesn't work and you are using a Mac, try CTRL-<Esc>.
                Or disable Listening under Accessibility preferences.
                                                *i_CTRL-C*
 CTRL-C         Quit insert mode, go back to Normal mode.  Do not check for
index 913b1de2eedbf0a1ec385b5c1a07005dc6671cee..ff214e2768c61bb30eaacd100253696adf922dc3 100644 (file)
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:    Vim help file
 " Maintainer:  The Vim Project <https://github.com/vim/vim>
-" Last Change: 2024 Oct 05
+" Last Change: 2024 Oct 08
 " Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
 " Quit when a (custom) syntax file was already loaded
@@ -97,6 +97,7 @@ syn match helpSpecial         "\[group]"
 syn match helpNormal           "\[\(readonly\|fifo\|socket\|converted\|crypted\)]"
 
 syn match helpSpecial          "CTRL-."
+syn match helpSpecial          "CTRL-<\a\+>"
 syn match helpSpecial          "CTRL-SHIFT-."
 syn match helpSpecial          "CTRL-Break"
 syn match helpSpecial          "CTRL-PageUp"