summaryrefslogtreecommitdiffstats
path: root/ci/if_ver-cmd.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ci/if_ver-cmd.vim')
-rw-r--r--ci/if_ver-cmd.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/if_ver-cmd.vim b/ci/if_ver-cmd.vim
new file mode 100644
index 0000000..ac5d82a
--- /dev/null
+++ b/ci/if_ver-cmd.vim
@@ -0,0 +1,12 @@
+" 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>)