mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
runtime(compiler): add vimdoc
closes: #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>
This commit is contained in:
committed by
Christian Brabandt
parent
3cb2b37767
commit
fcbefe74f1
19
runtime/compiler/vimdoc.vim
Normal file
19
runtime/compiler/vimdoc.vim
Normal 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
|
@@ -15,6 +15,8 @@ let b:did_ftplugin = 1
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
compiler vimdoc
|
||||||
|
|
||||||
if !exists('*VimFtpluginUndo')
|
if !exists('*VimFtpluginUndo')
|
||||||
func VimFtpluginUndo()
|
func VimFtpluginUndo()
|
||||||
setl fo< isk< com< tw< commentstring< include< define<
|
setl fo< isk< com< tw< commentstring< include< define<
|
||||||
|
Reference in New Issue
Block a user