diff runtime/doc/vim9.txt @ 27215:5b54f413d132 v8.2.4136

patch 8.2.4136: Vim9: the "autoload" argument of ":vim9script" is not useful Commit: https://github.com/vim/vim/commit/fd218c8a36e7ed33f7a205163690c5b7d2f31f8a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 16:26:24 2022 +0000 patch 8.2.4136: Vim9: the "autoload" argument of ":vim9script" is not useful Problem: Vim9: the "autoload" argument of ":vim9script" is not useful. Solution: Remove the argument. (closes https://github.com/vim/vim/issues/9555)
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 17:30:05 +0100
parents b19230a8d40a
children 3649b5a6b1b6
line wrap: on
line diff
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -1,4 +1,4 @@
-*vim9.txt*	For Vim version 8.2.  Last change: 2022 Jan 15
+*vim9.txt*	For Vim version 8.2.  Last change: 2022 Jan 18
 
 
 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
@@ -1523,17 +1523,18 @@ 1. In the plugin define user commands, f
    directory.
 
 2. In the autoload script put the bulk of the code. >
-	vim9script autoload
+	vim9script
 	export def Stuff(arg: string)
 	  ...
 
 <   This goes in .../autoload/for/search.vim.
 
-   Adding "autoload" to `:vim9script` has the effect that "for#search#" will
-   be prefixed to every exported item.  The prefix is obtained from the file
-   name, as you would to manually in a legacy autoload script.  Thus the
-   exported function can be found with "for#search#Stuff", but you would
-   normally use `import autoload` and not need to specify the prefix.
+   Putting the "search.vim" script under the "/autoload/for/" directory has
+   the effect that "for#search#" will be prefixed to every exported item.  The
+   prefix is obtained from the file name, as you would to manually in a
+   legacy autoload script.  Thus the exported function can be found with
+   "for#search#Stuff", but you would normally use `import autoload` and not
+   use the prefix.
 
    You can split up the functionality and import other scripts from the
    autoload script as you like.  This way you can share code between plugins.