Mercurial > vim
view ci/if_ver-cmd.vim @ 26723:c3cffd372c6f v8.2.3890
patch 8.2.3890: Vim9: type check for using v: variables is basic
Commit: https://github.com/vim/vim/commit/d787e40fdbe6f4d8bf47d36186c1d9d51c29b853
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 24 21:36:12 2021 +0000
patch 8.2.3890: Vim9: type check for using v: variables is basic
Problem: Vim9: type check for using v: variables is basic.
Solution: Specify a more precise type.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Dec 2021 22:45:03 +0100 |
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>)