commit 8c1327a62245c0b5ecc0c5f3795911b75144d5a0
parent 12d4c624bb3b6925ed222aed49a2fb779021461c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 30 Nov 2025 18:55:38 +0800
vim-patch:49f731d: runtime(doc): Improve :help :catch command specification (#36758)
The pattern argument is optional. See :help :sort for another example.
closes: vim/vim#18834
https://github.com/vim/vim/commit/49f731d2431b2422b97f1e756c120453ce1ca984
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/doc/vimeval.txt b/runtime/doc/vimeval.txt
@@ -2413,7 +2413,7 @@ text...
try | edit | catch /^Vim(edit):E\d\+/ | echo "error" | endtry
<
*:cat* *:catch* *E603* *E604* *E605*
-:cat[ch] /{pattern}/ The following commands until the next `:catch`,
+:cat[ch] [/{pattern}/] The following commands until the next `:catch`,
`:finally`, or `:endtry` that belongs to the same
`:try` as the `:catch` are executed when an exception
matching {pattern} is being thrown and has not yet