vim-patch:fcbefe74f161 (#28285)

runtime(compiler): add vimdoc

closes: vim/vim#14459

https://github.com/google/vimdoc generates vim help files from vimscript files

fcbefe74f1

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
zeertzjq 2024-04-12 05:48:25 +08:00 committed by GitHub
parent 3b9a152396
commit c6d1144515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,19 @@
" Vim Compiler File
" Language: vimdoc
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
" Latest Revision: 2024-04-09
"
" you can get it by `pip install vimdoc` or the package manager of your distribution.
if exists('b:current_compiler')
finish
endif
let b:current_compiler = 'vimdoc'
let s:save_cpoptions = &cpoptions
set cpoptions&vim
CompilerSet makeprg=vimdoc
let &cpoptions = s:save_cpoptions
unlet s:save_cpoptions

View File

@ -15,6 +15,8 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
compiler vimdoc
if !exists('*VimFtpluginUndo')
func VimFtpluginUndo()
setl fo< isk< com< tw< commentstring< keywordprg<