Skip to content

Commit 56398e2

Browse files
authored
Merge pull request #1935 from h-east/update-eval
Update eval.{txt,jax}
2 parents 9f5d20e + 964d19d commit 56398e2

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

doc/eval.jax

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Jan 25
1+
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Jan 29
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -4765,13 +4765,25 @@ dist#vim9#IsSafeExecutable(filetype:string, executable:string): bool ~
47654765
executable string
47664766

47674767
*dist#vim9#Open()* *:Open*
4768-
*g:Openprg*
4768+
*g:Openprg* *gx*
47694769
dist#vim9#Open(file: string) ~
47704770

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

4775+
この関数は、デフォルトでは gx マッピングを使用して呼び出される。ビジュアルモー
4776+
ドでは、視覚的に選択されたテキストを開こうとする。
4777+
4778+
関連設定変数:
4779+
`g:gx_word`: gx がカーソルの下のテキストを取得する方法を制御する。下位互換性の
4780+
ために、`g:netrw_gx` をフォールバックとして使用する。(デフォルト:
4781+
`<cfile>`)
4782+
4783+
`g:nogx`: gx マッピングを無効にする。下位互換性のために `g:netrw_nogx` をフォー
4784+
ルバックとして使用する。(デフォルト: `unset`)
4785+
4786+
47754787
NOTE: パスのエスケープは自動的に適用される。
47764788

47774789
使用法: >vim

en/eval.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.1. Last change: 2025 Jan 25
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Jan 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4908,13 +4908,25 @@ executable. It takes the following arguments:
49084908
executable string
49094909

49104910
*dist#vim9#Open()* *:Open*
4911-
*g:Openprg*
4911+
*g:Openprg* *gx*
49124912
dist#vim9#Open(file: string) ~
49134913

49144914
Opens `path` with the system default handler (macOS `open`, Windows
49154915
`explorer.exe`, Linux `xdg-open`, …). If the variable |g:Openprg| exists the
49164916
string specified in the variable is used instead.
49174917

4918+
This function is by default called using the gx mapping. In visual mode
4919+
tries to open the visually selected text.
4920+
4921+
Associated setting variables:
4922+
`g:gx_word`: control how gx picks up the text under the cursor. Uses
4923+
`g:netrw_gx` as a fallback for backward compatibility.
4924+
(default: `<cfile>`)
4925+
4926+
`g:nogx`: disables the gx mapping. Uses `g:netrw_nogx` as a fallback for
4927+
backward compatibility. (default: `unset`)
4928+
4929+
49184930
NOTE: Escaping of the path is automatically applied.
49194931

49204932
Usage: >vim

0 commit comments

Comments
 (0)