Commit: runtime(doc): improve :catch documentation

0 views
Skip to first unread message

Christian Brabandt

unread,
10:31 AM (8 hours ago) 10:31 AM
to vim...@googlegroups.com
runtime(doc): improve :catch documentation

Commit: https://github.com/vim/vim/commit/a7f703c2157fcafa94afb4995aee518b385838e7
Author: Mao-Yining <101858210+...@users.noreply.github.com>
Date: Sat Dec 27 15:28:26 2025 +0000

runtime(doc): improve :catch documentation

related: https://github.com/vim/vim/issues/18984
closes: https://github.com/vim/vim/issues/19029

Signed-off-by: Mao-Yining <101858210+...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 8a252b63d..7ba70e307 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 Dec 23
+*eval.txt* For Vim version 9.1. Last change: 2025 Dec 27


VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3723,11 +3723,11 @@ text...
{cmd}. When {pattern} is omitted all errors are
caught. Examples: >
:catch /^Vim:Interrupt$/ " catch interrupts (CTRL-C)
- :catch /^Vim\%(( \+)\)\=:E/ " catch all Vim errors
- :catch /^Vim\%(( \+)\)\=:/ " catch errors and interrupts
+ :catch /^Vim\%((\S\+)\)\=:E/ " catch all Vim errors
+ :catch /^Vim\%((\S\+)\)\=:/ " catch errors and interrupts
:catch /^Vim(write):/ " catch all errors in :write
:catch /^Vim(!):/ " catch all errors in :!
- :catch /^Vim\%(( \+)\)\=:E123:/ " catch error E123
+ :catch /^Vim\%((\S\+)\)\=:E123:/ " catch error E123
:catch /my-exception/ " catch user exception
:catch /.*/ " catch everything
:catch " same as /.*/
Reply all
Reply to author
Forward
0 new messages