mirror of
https://github.com/vim/vim.git
synced 2026-02-14 11:15:42 +02:00
closes: #19270 Signed-off-by: Peter Kenny <github.com@k1w1.cyou> Signed-off-by: Christian Brabandt <cb@256bit.org>
15 lines
406 B
VimL
15 lines
406 B
VimL
vim9script
|
|
|
|
# Open Vim help on {subject} in the current window (rather than a new split)
|
|
#
|
|
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
|
# Last change: 2026 Jan 29
|
|
|
|
import autoload '../autoload/helpcurwin.vim'
|
|
|
|
command -bar -nargs=? -complete=help HelpCurwin helpcurwin.Open(<q-args>)
|
|
|
|
nnoremap <Plug>HelpCurwin; <ScriptCmd>helpcurwin.Open(expand('<cWORD>'))<CR>
|
|
|
|
# vim: ts=8 sts=2 sw=2 et
|