mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-06-26 04:34:38 +08:00
18 lines
460 B
VimL
18 lines
460 B
VimL
" help.vim — native Vim help entrypoint
|
|
|
|
function! s:OpenHelp() abort
|
|
let l:doc = g:chopsticks_dir . '/doc'
|
|
if isdirectory(l:doc)
|
|
silent! execute 'helptags ' . fnameescape(l:doc)
|
|
endif
|
|
|
|
try
|
|
help chopsticks
|
|
catch /^Vim\%((\a\+)\)\=:E149/
|
|
echohl WarningMsg
|
|
echom 'chopsticks help tags are missing; run :helptags ' . l:doc
|
|
echohl None
|
|
endtry
|
|
endfunction
|
|
|
|
command! ChopsticksHelp call s:OpenHelp()
|