commit c6d11445152fbedccf6516fefd24f4136815f122 parent 3b9a152396c3a4ef7778c5c127373f89beecc853 Author: zeertzjq <zeertzjq@outlook.com> Date: Fri, 12 Apr 2024 05:48:25 +0800 vim-patch:fcbefe74f161 (#28285) runtime(compiler): add vimdoc closes: vim/vim#14459 https://github.com/google/vimdoc generates vim help files from vimscript files https://github.com/vim/vim/commit/fcbefe74f1619dfd925033d83a6d233c686409d4 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Diffstat:
| A | runtime/compiler/vimdoc.vim | | | 19 | +++++++++++++++++++ |
| M | runtime/ftplugin/vim.vim | | | 2 | ++ |
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/runtime/compiler/vimdoc.vim b/runtime/compiler/vimdoc.vim @@ -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 diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim @@ -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<