Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions doc/eval.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Jan 25
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Jan 29


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

*dist#vim9#Open()* *:Open*
*g:Openprg*
*g:Openprg* *gx*
dist#vim9#Open(file: string) ~

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

この関数は、デフォルトでは gx マッピングを使用して呼び出される。ビジュアルモー
ドでは、視覚的に選択されたテキストを開こうとする。

関連設定変数:
`g:gx_word`: gx がカーソルの下のテキストを取得する方法を制御する。下位互換性の
ために、`g:netrw_gx` をフォールバックとして使用する。(デフォルト:
`<cfile>`)

`g:nogx`: gx マッピングを無効にする。下位互換性のために `g:netrw_nogx` をフォー
ルバックとして使用する。(デフォルト: `unset`)


NOTE: パスのエスケープは自動的に適用される。

使用法: >vim
Expand Down
16 changes: 14 additions & 2 deletions en/eval.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 9.1. Last change: 2025 Jan 25
*eval.txt* For Vim version 9.1. Last change: 2025 Jan 29


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -4908,13 +4908,25 @@ executable. It takes the following arguments:
executable string

*dist#vim9#Open()* *:Open*
*g:Openprg*
*g:Openprg* *gx*
dist#vim9#Open(file: string) ~

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

This function is by default called using the gx mapping. In visual mode
tries to open the visually selected text.

Associated setting variables:
`g:gx_word`: control how gx picks up the text under the cursor. Uses
`g:netrw_gx` as a fallback for backward compatibility.
(default: `<cfile>`)

`g:nogx`: disables the gx mapping. Uses `g:netrw_nogx` as a fallback for
backward compatibility. (default: `unset`)


NOTE: Escaping of the path is automatically applied.

Usage: >vim
Expand Down