diff --git a/doc/eval.jax b/doc/eval.jax index b7cc07f22..af3bf719d 100644 --- a/doc/eval.jax +++ b/doc/eval.jax @@ -1,4 +1,4 @@ -*eval.txt* For Vim バージョン 9.1. Last change: 2025 Apr 02 +*eval.txt* For Vim バージョン 9.1. Last change: 2025 Jun 04 VIMリファレンスマニュアル by Bram Moolenaar @@ -4999,6 +4999,10 @@ dist#vim9#IsSafeExecutable(filetype:string, executable:string): bool ~ filetype string executable string + *package-open* +|:Open| および |:Launch| コマンドは、同梱のプラグイン +$VIMRUNTIME/plugin/openPlugin.vim によって提供される。 + *dist#vim9#Open()* *:Open* *:URLOpen* *g:Openprg* *gx* dist#vim9#Open(file: string) ~ @@ -5009,6 +5013,9 @@ Linux の `xdg-open` 等) を使用して `path` を開く。変数 |g:Openprg| |:Open| ユーザーコマンドは引数としてファイル補完を使用する。 +|:URLOpen| ユーザーコマンドは同じように動作するが、ファイル補完は実行されない +ため、特殊文字 |cmdline-special| は展開されない。 + この関数は、デフォルトでは gx マッピングを使用して呼び出される。ビジュアルモー ドでは、視覚的に選択されたテキストを開こうとする。 @@ -5026,11 +5033,8 @@ NOTE: パスのエスケープは自動的に適用される。 使用法: >vim :call dist#vim9#Open() :Open + :URLOpen < - *package-open* -|:Open| および |:Launch| コマンドは、同梱のプラグイン -$VIMRUNTIME/plugin/openPlugin.vim によって提供される。 - *dist#vim9#Launch()* *:Launch* dist#vim9#Launch(file: string) ~ diff --git a/en/eval.txt b/en/eval.txt index 170d2d037..492a4444a 100644 --- a/en/eval.txt +++ b/en/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 9.1. Last change: 2025 Apr 02 +*eval.txt* For Vim version 9.1. Last change: 2025 Jun 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -5149,6 +5149,10 @@ executable. It takes the following arguments: filetype string executable string + *package-open* +The |:Open| and |:Launch| command are provided by the included plugin +$VIMRUNTIME/plugin/openPlugin.vim + *dist#vim9#Open()* *:Open* *:URLOpen* *g:Openprg* *gx* dist#vim9#Open(file: string) ~ @@ -5159,6 +5163,9 @@ string specified in the variable is used instead. The |:Open| user command uses file completion for its argument. +The |:URLOpen| user command works the same but does not perform file +completion and therefore does not expand special characters |cmdline-special|. + This function is by default called using the gx mapping. In visual mode tries to open the visually selected text. @@ -5176,11 +5183,8 @@ NOTE: Escaping of the path is automatically applied. Usage: >vim :call dist#vim9#Open() :Open + :URLOpen < - *package-open* -The |:Open| and |:Launch| command are provided by the included plugin -$VIMRUNTIME/plugin/openPlugin.vim - *dist#vim9#Launch()* *:Launch* dist#vim9#Launch(file: string) ~