diff runtime/doc/vim9.txt @ 19556:ff5048b0ccfe v8.2.0335

patch 8.2.0335: no completion for :disassemble Commit: https://github.com/vim/vim/commit/cc390ff5b2c8725c55b961b24322c470659ede9f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 29 22:06:30 2020 +0100 patch 8.2.0335: no completion for :disassemble Problem: No completion for :disassemble. Solution: Make completion work. Also complete script-local functions if the name starts with "s:".
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Feb 2020 22:15:05 +0100
parents a7a24d06d7ce
children d4deb2e50667
line wrap: on
line diff
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -149,6 +149,12 @@ with `substitute(` this will use the fun
 command instead: >
 	:substitute(pattern (replacement (
 
+Note that while variables need to be defined before they can be used,
+functions can be called before being defined.  This is required to be able
+have cyclic dependencies between functions.  It is slightly less efficient,
+since the function has to be looked up by name.  And a typo in the function
+name will only be found when the call is executed.
+
 
 No curly braces expansion ~
 
@@ -275,6 +281,8 @@ script, then script-local variables must
 						*:disa* *:disassemble*
 :disa[ssemble] {func}	Show the instructions generated for {func}.
 			This is for debugging and testing.
+			Note that for command line completion of {func} you
+			can prepend "s:" to find script-local functions.
 
 ==============================================================================