File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 /.*/
You can’t perform that action at this time.
0 commit comments