]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(vim): recognize <...> strings (and keys) for 'keywordprg'
authorKonfekt <Konfekt@users.noreply.github.com>
Wed, 5 Mar 2025 19:33:00 +0000 (20:33 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 5 Mar 2025 19:33:00 +0000 (20:33 +0100)
see :help E499 and :h key-notation

closes: #16795

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/vim.vim

index cf6ced9f8007885620fce42799175f9d51bb3bc0..99ce0bc586dbff1a26bcec5441bed3540f087888 100644 (file)
@@ -1,7 +1,7 @@
 " Vim filetype plugin
 " Language:          Vim
 " Maintainer:        Doug Kearns <dougkearns@gmail.com>
-" Last Change:       2025 Feb 25
+" Last Change:       2025 Mar 05
 " Former Maintainer: Bram Moolenaar <Bram@vim.org>
 " Contributors:      Riley Bruins <ribru17@gmail.com> ('commentstring'),
 "                    @Konfekt
@@ -85,6 +85,8 @@ if !exists("*" .. expand("<SID>") .. "Help")
       return ':'.topic
     elseif pre =~# '\<v:$'
       return 'v:'.topic
+    elseif pre =~# '<$'
+      return '<'.topic.'>'
     elseif pre =~# '\\$'
       return '/\'.topic
     elseif topic ==# 'v' && post =~# ':\w\+'