commit 9c43e5cd4ae7dc82a6732793a01a1fa1e5b2b2ef
parent 6db439ff01319048fc23401fd7fbfba7d00a7c03
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 26 Feb 2025 07:31:30 +0800
vim-patch:580e457: runtime(vim): make VimKeywordPrg even smarter for regexes
closes: vim/vim#16729
https://github.com/vim/vim/commit/580e457a2a5fa63b9be0bf5f2c81434e157bcc0a
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Doug Kearns <dougkearns@gmail.com>
-" Last Change: 2025 Feb 23
+" Last Change: 2025 Feb 25
" 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 topic ==# 'v' && post =~# ':\w\+'
return 'v'.matchstr(post, ':\w\+')
else