|
1 |
| -*repeat.txt* For Vim version 9.0. Last change: 2022 Jun 18 |
| 1 | +*repeat.txt* For Vim version 9.0. Last change: 2022 Sep 22 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -92,7 +92,8 @@ pattern and do not match another pattern: >
|
92 | 92 | This first finds all lines containing "found", but only executes {cmd} when
|
93 | 93 | there is no match for "notfound".
|
94 | 94 |
|
95 |
| -To execute a non-Ex command, you can use the `:normal` command: > |
| 95 | +Any Ex command can be used, see |ex-cmd-index|. To execute a Normal mode |
| 96 | +command, you can use the `:normal` command: > |
96 | 97 | :g/pat/normal {commands}
|
97 | 98 | Make sure that {commands} ends with a whole command, otherwise Vim will wait
|
98 | 99 | for you to type the rest of the command for each match. The screen will not
|
@@ -200,7 +201,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
200 | 201 | *:source-range*
|
201 | 202 | :[range]so[urce] [++clear]
|
202 | 203 | Read Ex commands from the [range] of lines in the
|
203 |
| - current buffer. |
| 204 | + current buffer. When [range] is omitted read all |
| 205 | + lines. |
204 | 206 |
|
205 | 207 | When sourcing commands from the current buffer, the
|
206 | 208 | same script-ID |<SID>| is used even if the buffer is
|
@@ -417,6 +419,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
417 | 419 | For a script that was used with `import autoload` but
|
418 | 420 | was not actually sourced yet an "A" is shown after the
|
419 | 421 | script ID.
|
| 422 | + For a script that was referred to by one name but |
| 423 | + after resolving symbolic links got sourced with |
| 424 | + another name the other script is after "->". E.g. |
| 425 | + "20->22" means script 20 was sourced as script 22. |
420 | 426 | {not available when compiled without the |+eval|
|
421 | 427 | feature}
|
422 | 428 |
|
@@ -900,6 +906,11 @@ executed like a normal Ex command, "step" will stop once in the compiled
|
900 | 906 | context, where local variables can be inspected, and once just before
|
901 | 907 | executing the command.
|
902 | 908 |
|
| 909 | +In a :def function variables that haven't been declared yet cannot be |
| 910 | +inspected. Variables that have been declared can be inspected, also when the |
| 911 | +block they were declared in has finished. In commands this would not be |
| 912 | +possible, thus is slightly misleading (but can be useful). |
| 913 | + |
903 | 914 | The backtrace shows the hierarchy of function calls, e.g.:
|
904 | 915 | >bt ~
|
905 | 916 | 3 function One[3] ~
|
|
0 commit comments