patch 8.1.1116: cannot enforce a Vim script style
Problem: Cannot enforce a Vim script style.
Solution: Add the :scriptversion command. (closes #3857)
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index eed064a..dc441d3 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -1,4 +1,4 @@
-*repeat.txt* For Vim version 8.1. Last change: 2018 Dec 18
+*repeat.txt* For Vim version 8.1. Last change: 2019 Apr 04
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -325,6 +325,17 @@
<
{not in Vi}
+:scriptv[ersion] {version} *:scriptv* *:scriptversion*
+ *E999* *E984*
+ Specify the version of Vim for the lines that follow.
+ Does not apply to sourced scripts.
+
+ If {version} is higher than what the current Vim
+ version supports E999 will be given. You either need
+ to rewrite the script to make it work with an older
+ Vim version, or update Vim to a newer version. See
+ |vimscript-version| for what changed between versions.
+
*:scr* *:scriptnames*
:scr[iptnames] List all sourced script names, in the order they were
first sourced. The number is used for the script ID