Commit: runtime(doc): clarify the use of v:errormsg

4 views
Skip to first unread message

Christian Brabandt

unread,
Dec 1, 2025, 3:15:41 PM (2 days ago) Dec 1
to vim...@googlegroups.com
runtime(doc): clarify the use of v:errormsg

Commit: https://github.com/vim/vim/commit/c3cfdefdeee3928671809a20f86ddc5d0fe4cc74
Author: Christian Brabandt <c...@256bit.org>
Date: Mon Dec 1 20:02:10 2025 +0000

runtime(doc): clarify the use of v:errormsg

fixes: https://github.com/vim/vim/issues/18825

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 0acd2e24b..4f1b0b42f 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 9.1. Last change: 2025 Nov 30
+*eval.txt* For Vim version 9.1. Last change: 2025 Dec 01


VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2381,8 +2381,8 @@ v:echospace Number of screen cells that can be used for an `:echo` message
available above the last line.

*v:errmsg* *errmsg-variable*
-v:errmsg Last given error message. It's allowed to set this variable.
- Example: >
+v:errmsg Last error message that occurred (not neccessarily displayed).
+ It's allowed to set this variable. Example: >
:let v:errmsg = ""
:silent! next
:if v:errmsg != ""
Reply all
Reply to author
Forward
0 new messages