|
1 |
| -*eval.txt* For Vim version 9.1. Last change: 2024 Dec 23 |
| 1 | +*eval.txt* For Vim version 9.1. Last change: 2025 Jan 02 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -1953,7 +1953,8 @@ variables for each buffer. Use local buffer variables instead |b:var|.
|
1953 | 1953 |
|
1954 | 1954 | PREDEFINED VIM VARIABLES *vim-variable* *v:var* *v:*
|
1955 | 1955 | *E963* *E1063*
|
1956 |
| -Some variables can be set by the user, but the type cannot be changed. |
| 1956 | +Most variables are read-only, when a variable can be set by the user, it will |
| 1957 | +be mentioned at the variable description below. The type cannot be changed. |
1957 | 1958 |
|
1958 | 1959 | *v:argv* *argv-variable*
|
1959 | 1960 | v:argv The command line arguments Vim was invoked with. This is a
|
@@ -2172,7 +2173,8 @@ v:event Dictionary containing information about the current
|
2172 | 2173 | <
|
2173 | 2174 | *v:exception* *exception-variable*
|
2174 | 2175 | v:exception The value of the exception most recently caught and not
|
2175 |
| - finished. See also |v:throwpoint| and |throw-variables|. |
| 2176 | + finished. See also |v:stacktrace|, |v:throwpoint|, and |
| 2177 | + |throw-variables|. |
2176 | 2178 | Example: >
|
2177 | 2179 | :try
|
2178 | 2180 | : throw "oops"
|
@@ -2548,6 +2550,12 @@ v:sizeofpointer Number of bytes in a pointer. Depends on how Vim was compiled.
|
2548 | 2550 | This is only useful for deciding whether a test will give the
|
2549 | 2551 | expected result.
|
2550 | 2552 |
|
| 2553 | + *v:stacktrace* *stacktrace-variable* |
| 2554 | +v:stacktrace The stack trace of the exception most recently caught and |
| 2555 | + not finished. Refer to |getstacktrace()| for the structure of |
| 2556 | + stack trace. See also |v:exception|, |v:throwpoint|, and |
| 2557 | + |throw-variables|. |
| 2558 | + |
2551 | 2559 | *v:statusmsg* *statusmsg-variable*
|
2552 | 2560 | v:statusmsg Last given status message. It's allowed to set this variable.
|
2553 | 2561 |
|
@@ -2676,7 +2684,7 @@ v:this_session Full filename of the last loaded or saved session file. See
|
2676 | 2684 | *v:throwpoint* *throwpoint-variable*
|
2677 | 2685 | v:throwpoint The point where the exception most recently caught and not
|
2678 | 2686 | finished was thrown. Not set when commands are typed. See
|
2679 |
| - also |v:exception| and |throw-variables|. |
| 2687 | + also |v:exception|, |v:stacktrace|, and |throw-variables|. |
2680 | 2688 | Example: >
|
2681 | 2689 | :try
|
2682 | 2690 | : throw "oops"
|
@@ -3856,7 +3864,8 @@ in the variable |v:exception|: >
|
3856 | 3864 | : echo "Number thrown. Value is" v:exception
|
3857 | 3865 |
|
3858 | 3866 | You may also be interested where an exception was thrown. This is stored in
|
3859 |
| -|v:throwpoint|. Note that "v:exception" and "v:throwpoint" are valid for the |
| 3867 | +|v:throwpoint|. And you can obtain the stack trace from |v:stacktrace|. |
| 3868 | +Note that "v:exception", "v:stacktrace" and "v:throwpoint" are valid for the |
3860 | 3869 | exception most recently caught as long it is not finished.
|
3861 | 3870 | Example: >
|
3862 | 3871 |
|
|
0 commit comments