neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5670dde1afe4dde6344ef5ea8c5c01daa13edc3d
parent 7f1d7271d5d3cf3af8075766e834f171e488aef6
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun, 28 Dec 2025 08:18:48 +0800

vim-patch:a7f703c: runtime(doc): improve :catch documentation (#37131)

related: vim/vim#18984
closes:  vim/vim#19029

https://github.com/vim/vim/commit/a7f703c2157fcafa94afb4995aee518b385838e7

Co-authored-by: Mao-Yining <101858210+mao-yining@users.noreply.github.com>
Diffstat:
Mruntime/doc/vimeval.txt | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/runtime/doc/vimeval.txt b/runtime/doc/vimeval.txt @@ -2424,11 +2424,11 @@ text... {cmd}. When {pattern} is omitted all errors are caught. Examples: > :catch /^Vim:Interrupt$/ " catch interrupts (CTRL-C) - :catch /^Vim\%((\a\+)\)\=:E/ " catch all Vim errors - :catch /^Vim\%((\a\+)\)\=:/ " 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\%((\a\+)\)\=:E123:/ " catch error E123 + :catch /^Vim\%((\S\+)\)\=:E123:/ " catch error E123 :catch /my-exception/ " catch user exception :catch /.*/ " catch everything :catch " same as /.*/