Mercurial > vim
view ci/if_ver-cmd.vim @ 27340:2b3cc874334c v8.2.4198
patch 8.2.4198: Vim9: the switch for executing instructions is too long
Commit: https://github.com/vim/vim/commit/058ee7c5699ef551be5aa04c66b3cffc436e9b08
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 23 20:00:42 2022 +0000
patch 8.2.4198: Vim9: the switch for executing instructions is too long
Problem: Vim9: the switch for executing instructions is too long.
Solution: Move some code to separate functions.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Jan 2022 21:15: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>)