Groups
Groups
Sign in
Groups
Groups
vim_dev
Conversations
About
Send feedback
Help
Commit: runtime(vim): make VimKeywordPrg even smarter for regexes
4 views
Skip to first unread message
Christian Brabandt
unread,
Feb 25, 2025, 3:00:12 PM
2/25/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
runtime(vim): make VimKeywordPrg even smarter for regexes
Commit:
https://github.com/vim/vim/commit/580e457a2a5fa63b9be0bf5f2c81434e157bcc0a
Author: Konfekt <
Kon...@users.noreply.github.com
>
Date: Tue Feb 25 20:53:55 2025 +0100
runtime(vim): make VimKeywordPrg even smarter for regexes
closes:
https://github.com/vim/vim/issues/16729
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 c9ea793ee..cf6ced9f8 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 23
+" Last Change: 2025 Feb 25
" 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 topic ==# 'v' && post =~# ':\w\+'
return 'v'.matchstr(post, ':\w\+')
else
Reply all
Reply to author
Forward
0 new messages