Mercurial > vim
view ci/if_ver-cmd.vim @ 29058:eee580a4c402 v8.2.5051
patch 8.2.5051: check for autocmd_add() event argument is confusing
Commit: https://github.com/vim/vim/commit/882476ad7b4944a8386993e94b7e31139a314f91
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 1 16:02:38 2022 +0100
patch 8.2.5051: check for autocmd_add() event argument is confusing
Problem: Check for autocmd_add() event argument is confusing.
Solution: Make the code more straightforward.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Jun 2022 17:15:03 +0200 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)