Mercurial > vim
view ci/if_ver-cmd.vim @ 25280:ca7a8ea2eb5f v8.2.3177
patch 8.2.3177: Vim9: can not use "for _ in expr" at script level
Commit: https://github.com/vim/vim/commit/ad2d4969e1616d3a0354c181e3a09271d5433b3d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 18 17:08:50 2021 +0200
patch 8.2.3177: Vim9: can not use "for _ in expr" at script level
Problem: Vim9: can not use "for _ in expr" at script level.
Solution: Skip assignment if the loop variable is "_".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Jul 2021 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>)