Skip to content

Commit f0df9ae

Browse files
committed
cmdline.txt: Update Vim 8.2.4812
1 parent c585344 commit f0df9ae

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

en/cmdline.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.2. Last change: 2022 Feb 04
1+
*cmdline.txt* For Vim version 8.2. Last change: 2022 Apr 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -939,7 +939,7 @@ Note: these are typed literally, they are not special keys!
939939
file name of the sourced file. *E498*
940940
When executing a legacy function, is replaced with the call
941941
stack, as with <stack> (this is for backwards
942-
compatibility, using <stack> is preferred).
942+
compatibility, using <stack> or <script> is preferred).
943943
In Vim9 script using <sfile> in a function gives error
944944
*E1245* .
945945
Note that filename-modifiers are useless when <sfile> is
@@ -951,6 +951,12 @@ Note: these are typed literally, they are not special keys!
951951
".." in between items. E.g.:
952952
"function {function-name1}[{lnum}]..{function-name2}[{lnum}]"
953953
If there is no call stack you get error *E489* .
954+
*:<script>* *<script>*
955+
<script> When executing a `:source` command, is replaced with the file
956+
name of the sourced file. When executing a function, is
957+
replaced with the file name of the script where it is
958+
defined.
959+
If the file name cannot be determined you get error *E1274* .
954960
*:<slnum>* *<slnum>*
955961
<slnum> When executing a ":source" command, is replaced with the
956962
line number. *E842*

0 commit comments

Comments
 (0)