Mercurial > vim
changeset 34887:4e9d1cafdcf6
runtime(compiler): add vimdoc
Commit: https://github.com/vim/vim/commit/fcbefe74f1619dfd925033d83a6d233c686409d4
Author: Wu, Zhenyu <wuzhenyu@ustc.edu>
Date: Thu Apr 11 21:25:39 2024 +0200
runtime(compiler): add vimdoc
closes: https://github.com/vim/vim/issues/14459
https://github.com/google/vimdoc generates vim help files from vimscript files
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 11 Apr 2024 21:30:04 +0200 |
parents | 1c9e3662042f |
children | a843afce8fcf |
files | runtime/compiler/vimdoc.vim runtime/ftplugin/vim.vim |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ 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