vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

helpcurwin.vim (406B)


      1 vim9script
      2 
      3 # Open Vim help on {subject} in the current window (rather than a new split)
      4 #
      5 # Maintainer:   The Vim Project <https://github.com/vim/vim>
      6 # Last change:  2026 Jan 29
      7 
      8 import autoload '../autoload/helpcurwin.vim'
      9 
     10 command -bar -nargs=? -complete=help HelpCurwin helpcurwin.Open(<q-args>)
     11 
     12 nnoremap <Plug>HelpCurwin; <ScriptCmd>helpcurwin.Open(expand('<cWORD>'))<CR>
     13 
     14 # vim: ts=8 sts=2 sw=2 et