runtime(help): highlight CTRL-<Key> correctly Commit: https://github.com/vim/vim/commit/d3b55d7f76e32e9b7f895fe43f37435ce7bf782e Author: Christian Brabandt <c...@256bit.org> Date: Tue Oct 8 20:20:23 2024 +0200
runtime(help): highlight CTRL-<Key> correctly Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 3894e5c74..a954eef0b 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -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 diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index 913b1de2e..ff214e276 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -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 <b...@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-< \+>" syn match helpSpecial "CTRL-SHIFT-." syn match helpSpecial "CTRL-Break" syn match helpSpecial "CTRL-PageUp" -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1syEyI-003Sr0-4V%40256bit.org.