Skip to content

Commit 968cfa8

Browse files
authored
Merge pull request #2456 from h-east/update-eval
Update eval.{txt,jax}
2 parents d85af34 + 0b8c6a4 commit 968cfa8

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

doc/eval.jax

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Dec 19
1+
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Dec 23
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -3601,21 +3601,24 @@ text...
36013601

36023602
*:cat* *:catch*
36033603
*E603* *E604* *E605* *E654* *E1033*
3604-
:cat[ch] [/{pattern}/] {pattern}にマッチする例外が発生し、より前の `:catch`
3604+
:cat[ch] [/{pattern}/] {pattern} にマッチする例外が発生し、より前の `:catch`
36053605
で捕捉されなかった場合、この `:catch` と同じ `:try`
36063606
属する次の `:catch`, `:finally`, `:endtry` までの後続
36073607
のコマンドが実行される。そのような例外が発生しなかった
36083608
場合、それらのコマンドはスキップされる。
3609-
{pattern}が省略された場合は全てのエラーが捕捉される。
3609+
パターンは、Ex コマンド {cmd} の実行時に発生した例外を
3610+
示すために、"Vim({cmd})" で始めることができる。
3611+
{pattern} が省略された場合は全てのエラーが捕捉される。
36103612
例: >
36113613
:catch /^Vim:Interrupt$/ " 割り込み (CTRL-C) を捕捉
3612-
:catch /^Vim\%((\a\+)\)\=:E/ " 全Vimエラーを捕捉
3614+
:catch /^Vim\%((\a\+)\)\=:E/ " 全ての Vim エラーを捕捉
36133615
:catch /^Vim\%((\a\+)\)\=:/ " 例外と割り込みを捕捉
3614-
:catch /^Vim(write):/ " :writeにおける全エラーを捕捉
3615-
:catch /^Vim\%((\a\+)\)\=:E123:/ " エラーE123を捕捉
3616+
:catch /^Vim(write):/ " :write の全てのエラーを捕捉
3617+
:catch /^Vim(!):/ " :! の全てのエラーを補足
3618+
:catch /^Vim\%((\a\+)\)\=:E123:/ " エラー E123 を捕捉
36163619
:catch /my-exception/ " ユーザー定義例外を捕捉
36173620
:catch /.*/ " 全てを捕捉
3618-
:catch " /.*/と同じ
3621+
:catch " /.*/ と同じ
36193622
<
36203623
{pattern}を囲むのに/以外の文字を使うことができる。ただ
36213624
しその文字は特別な意味(例: '|' や '"' など)を持ってい
@@ -5073,7 +5076,7 @@ $VIMRUNTIME/plugin/openPlugin.vim によって提供される。
50735076
*g:Openprg* *gx*
50745077
dist#vim9#Open(file: string) ~
50755078

5076-
システムのデフォルトハンドラー (macOS の `open`、Windows の `explorer.exe`
5079+
システムのデフォルトハンドラー (macOS の `open`、Windows の `start`
50775080
Linux の `xdg-open` 等) を使用して `path` を開く。変数 |g:Openprg| が存在する
50785081
場合は、代わりに変数で指定された文字列が使用される。
50795082

en/eval.txt

Lines changed: 7 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 19
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Dec 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3718,12 +3718,15 @@ text...
37183718
matching {pattern} is being thrown and has not yet
37193719
been caught by a previous `:catch`. Otherwise, these
37203720
commands are skipped.
3721-
When {pattern} is omitted all errors are caught.
3722-
Examples: >
3721+
Pattern can start with "Vim({cmd})" to indicate an
3722+
exception that occurred when executing the Ex command
3723+
{cmd}. When {pattern} is omitted all errors are
3724+
caught. Examples: >
37233725
:catch /^Vim:Interrupt$/ " catch interrupts (CTRL-C)
37243726
:catch /^Vim\%((\a\+)\)\=:E/ " catch all Vim errors
37253727
:catch /^Vim\%((\a\+)\)\=:/ " catch errors and interrupts
37263728
:catch /^Vim(write):/ " catch all errors in :write
3729+
:catch /^Vim(!):/ " catch all errors in :!
37273730
:catch /^Vim\%((\a\+)\)\=:E123:/ " catch error E123
37283731
:catch /my-exception/ " catch user exception
37293732
:catch /.*/ " catch everything
@@ -5231,7 +5234,7 @@ $VIMRUNTIME/plugin/openPlugin.vim
52315234
dist#vim9#Open(file: string) ~
52325235

52335236
Opens `path` with the system default handler (macOS `open`, Windows
5234-
`explorer.exe`, Linux `xdg-open`, …). If the variable |g:Openprg| exists the
5237+
`start`, Linux `xdg-open`, …). If the variable |g:Openprg| exists the
52355238
string specified in the variable is used instead.
52365239

52375240
The |:Open| user command uses file completion for its argument.

0 commit comments

Comments
 (0)