summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-03-15 19:02:49 -0400
committerGitHub <noreply@github.com>2026-03-15 19:02:49 -0400
commit16f7440cc7b59b7e5c79f593fedc117d2d16d7dd (patch)
tree6794a10d9c955f0ce283a16268ed8aa28c2d2cb2 /runtime/ftplugin
parent747da13f44ef895e51081065546f3c465637a615 (diff)
feat(help): super K (":help!") guesses tag at cursor #36205
Problem: `K` in help files may fail in some noisy text. Example: (`fun(config: vim.lsp.ClientConfig): boolean`) ^cursor Solution: - `:help!` (bang, no args) activates DWIM behavior: tries `<cWORD>`, then trims punctuation until a valid tag is found. - Set `keywordprg=:help!` by default. - Does not affect `CTRL-]`, that is still fully "tags" based.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/help.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim
index e8651b5d59..7f60953738 100644
--- a/runtime/ftplugin/help.vim
+++ b/runtime/ftplugin/help.vim
@@ -17,7 +17,7 @@ let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu< keywordprg< omnifunc< comme
setl comments= cms=
-setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help omnifunc=s:HelpComplete
+setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help! omnifunc=s:HelpComplete
let &l:iskeyword='!-~,^*,^|,^",192-255'
if has("conceal")
setlocal cole=2 cocu=nc