Skip to content

Commit a7f703c

Browse files
mao-yiningchrisbra
authored andcommitted
runtime(doc): improve :catch documentation
related: #18984 closes: #19029 Signed-off-by: Mao-Yining <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 4e722fd commit a7f703c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

runtime/doc/eval.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.1. Last change: 2025 Dec 23
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Dec 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3723,11 +3723,11 @@ text...
37233723
{cmd}. When {pattern} is omitted all errors are
37243724
caught. Examples: >
37253725
:catch /^Vim:Interrupt$/ " catch interrupts (CTRL-C)
3726-
:catch /^Vim\%((\a\+)\)\=:E/ " catch all Vim errors
3727-
:catch /^Vim\%((\a\+)\)\=:/ " catch errors and interrupts
3726+
:catch /^Vim\%((\S\+)\)\=:E/ " catch all Vim errors
3727+
:catch /^Vim\%((\S\+)\)\=:/ " catch errors and interrupts
37283728
:catch /^Vim(write):/ " catch all errors in :write
37293729
:catch /^Vim(!):/ " catch all errors in :!
3730-
:catch /^Vim\%((\a\+)\)\=:E123:/ " catch error E123
3730+
:catch /^Vim\%((\S\+)\)\=:E123:/ " catch error E123
37313731
:catch /my-exception/ " catch user exception
37323732
:catch /.*/ " catch everything
37333733
:catch " same as /.*/

0 commit comments

Comments
 (0)