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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -939,7 +939,7 @@ Note: these are typed literally, they are not special keys!
939
939
file name of the sourced file. *E498*
940
940
When executing a legacy function, is replaced with the call
941
941
stack, as with <stack> (this is for backwards
942
- compatibility, using <stack> is preferred).
942
+ compatibility, using <stack> or <script> is preferred).
943
943
In Vim9 script using <sfile> in a function gives error
944
944
*E1245* .
945
945
Note that filename-modifiers are useless when <sfile> is
@@ -951,6 +951,12 @@ Note: these are typed literally, they are not special keys!
951
951
".." in between items. E.g.:
952
952
"function {function-name1} [{lnum} ]..{function-name2} [{lnum} ]"
953
953
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* .
954
960
*:<slnum>* *<slnum>*
955
961
<slnum> When executing a ":source" command, is replaced with the
956
962
line number. *E842*
0 commit comments