Mercurial > vim
view ci/if_ver-cmd.vim @ 21188:d73b6ba20053 v8.2.1145
patch 8.2.1145: Vim9: "for" only accepts a list at compile time
Commit: https://github.com/vim/vim/commit/0ad3e894d75236915e67dfbbcc821b6bb3c05d91
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 5 21:38:11 2020 +0200
patch 8.2.1145: Vim9: "for" only accepts a list at compile time
Problem: Vim9: "for" only accepts a list at compile time.
Solution: Also accept a list at runtime.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Jul 2020 21:45:04 +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>)