Commit: runtime(vim): recognize <...> strings (and keys) for 'keywordprg'

2 views
Skip to first unread message

Christian Brabandt

unread,
Mar 5, 2025, 2:45:11 PM3/5/25
to vim...@googlegroups.com
runtime(vim): recognize <...> strings (and keys) for 'keywordprg'

Commit: https://github.com/vim/vim/commit/08a410f674a340f137623526bf8159d5a476f729
Author: Konfekt <Kon...@users.noreply.github.com>
Date: Wed Mar 5 20:33:00 2025 +0100

runtime(vim): recognize <...> strings (and keys) for 'keywordprg'

see :help E499 and :h key-notation

closes: #16795

Signed-off-by: Konfekt <Kon...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index cf6ced9f8..99ce0bc58 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Doug Kearns <dougk...@gmail.com>
-" Last Change: 2025 Feb 25
+" Last Change: 2025 Mar 05
" Former Maintainer: Bram Moolenaar <Br...@vim.org>
" Contributors: Riley Bruins <rib...@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\+'
Reply all
Reply to author
Forward
0 new messages