Add documentation

This commit is contained in:
2022-12-30 23:11:32 -05:00
parent 28a044cad4
commit 97993040d3
5 changed files with 70 additions and 6 deletions

View File

@ -18,10 +18,10 @@ else
awkcmd = "gawk"
endif
if awkcmd != "disable" && executable(awkcmd)
if has("patch-8.2.4770") && awkcmd != "disable" && executable(awkcmd)
command -nargs=1 LogRotateHelpCmd :call g:logrotate#LogrotateHelp(awkcmd, <f-args>)
setlocal keywordprg=:LogRotateHelpCmd
command -nargs=1 LogRotateHelp :call g:logrotate#LogrotateHelp(awkcmd, <f-args>)
setlocal keywordprg=:LogRotateHelp
b:undo_ftplugin = b:undo_ftplugin .. " keywordprg<"
endif