Skip to content

Update pi_netrw.{txt,jax} #2216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025
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
58 changes: 29 additions & 29 deletions doc/pi_netrw.jax
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Netrw を使うとファイルの読み込み、書き込み、ネットワー
set nocp " 'compatible' をオフにする
filetype plugin on " プラグインを有効にする
<
(|'cp'|と|:filetype-plugin-on|も参照してください)
('cp'と|:filetype-plugin-on|も参照してください)

Netrw は url を使うことで他のマシンのファイルを透過的に扱うことができます
(|netrw-transparent|参照)。例えば、別のマシンにアカウントを持っていて、scp が
Expand Down Expand Up @@ -653,8 +653,8 @@ ftp でパスワードが必要なときは Vim の組み込み関数 |inputsecr
==============================================================================
5. netrw の有効化 *netrw-activate* {{{1

ネットワークファイル転送は |'nocompatible'| が設定されていればデフォルトで利用
可能です。netrw のスクリプトファイルはシステムのランタイムディレクトリにありま
ネットワークファイル転送は 'nocompatible' が設定されていればデフォルトで利用可
能です。netrw のスクリプトファイルはシステムのランタイムディレクトリにありま
す。Vim の起動時には plugin/netrwPlugin.vim だけが読み込まれます。メインスクリ
プトの autoload/netrw.vim は、実際に netrw が使用されたときに読み込まれます。
次の (最低限の) 設定を <.vimrc> ファイルに書いておくことをお勧めします: >
Expand Down Expand Up @@ -1148,7 +1148,7 @@ QUICK HELP *netrw-quickhelp* {{{2
セッション中で起動されていれば)。

".netrwbook" ファイルは netrw (とvim) が起動されていない間ブックマークを保持し
ます。デフォルトでは |'runtimepath'|の最初のディレクトリに保存されます。
ます。デフォルトでは 'runtimepath' の最初のディレクトリに保存されます。

関連項目:
|netrw-gb| ブックマークに戻る (移動する)
Expand Down Expand Up @@ -1363,7 +1363,7 @@ Note: |netrw-qb| はブックマークと履歴を両方表示します。履歴
*.netrwhist*
履歴の量を制御するには |g:netrw_dirhistmax| を参照。".netrwhist" ファイルは
netrw (と vim) が起動されていない間、履歴を保持します。デフォルトでは
|'runtimepath'|の最初のディレクトリに保存されます。
'runtimepath' の最初のディレクトリに保存されます。

関連項目:
|netrw-U| 次のディレクトリに進む
Expand Down Expand Up @@ -2346,11 +2346,11 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ

*g:netrw_alto* 分割ウィンドウを(上ではなく)下に開くようにする
(|netrw-o| 参照)
初期設定: =&sb (|'sb'| 参照)
初期設定: =&sb ('sb' 参照)

*g:netrw_altv* 分割ウィンドウを(左ではなく)右に開くようにする
(|netrw-v| 参照)
初期設定: =&spr (|'spr'| 参照)
初期設定: =&spr ('spr' 参照)

*g:netrw_banner* バナーの表示を切り替える
=0: バナーを表示しない
Expand Down Expand Up @@ -2429,17 +2429,17 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ
=8 cul U-cuc cul cuc

記号の意味
u-cul : |'cursorline'| のユーザー設定使用
u-cuc : |'cursorcolumn'| のユーザー設定使用
U-cul : |'cursorline'| のユーザー設定を使用
U-cuc : |'cursorcolumn'| のユーザー設定を使用
cul : |'cursorline'| をローカル設定する
cuc : |'cursorcolumn'| をローカル設定する
u-cul : 'cursorline' のユーザー設定使用
u-cuc : 'cursorcolumn' のユーザー設定使用
U-cul : 'cursorline' のユーザー設定を使用
U-cuc : 'cursorcolumn' のユーザー設定を使用
cul : 'cursorline' をローカル設定する
cuc : 'cursorcolumn' をローカル設定する

初期設定は、netrw を最後に開いたときの
|g:netrw_cursor| >= 5 または、netrw が最初に
実行されたときに有効だった |'cuc'| および
|'cal'| の設定値を意味します。
実行されたときに有効だった 'cuc' および
'cal' の設定値を意味します。

*g:netrw_decompress* = { '.lz4': 'lz4 -d',
'.lzo': 'lzop -d',
Expand Down Expand Up @@ -2502,7 +2502,7 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ

*g:netrw_ffkeep* (初期設定: 変数なし)
この変数が存在して値がゼロなら、netrw は
|'fileformat'| を保存、復元しない。
'fileformat' を保存、復元しない。

*g:netrw_fname_escape* =' ?&;%'
リモートで読み/書きするときにファイル名をエス
Expand Down Expand Up @@ -2554,7 +2554,7 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ
を保存するホームディレクトリ。
Netrw は文字列に対して |expand()| を使用しま
す。
初期設定: |'runtimepath'| の最初のディレクトリ
初期設定: 'runtimepath' の最初のディレクトリ

*g:netrw_keepdir* =1 (初期設定) カレントディレクトリとブラウジン
グディレクトリを別にする
Expand Down Expand Up @@ -2749,8 +2749,8 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ
netrwTmp : tmp* *tmp
netrwYacc : *.y

加えて、|'suffixes'| で言及されているグループ
も特別ファイルのハイライトグループに追加されま
加えて、'suffixes' で言及されているグループも
特別ファイルのハイライトグループに追加されま
す。
これらの構文ハイライトグループは、初期設定では
netrwGray か Folded へのリンクです。
Expand Down Expand Up @@ -2827,8 +2827,8 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ
ウィンドウの行または列の大きさには
g:netrw_winsize の絶対値が使われる。
g:netrw_winsize がゼロなら、通常どおりウィン
ドウが分割される (つまり、例えば
|'equalalways'| が機能するなど)。
ドウが分割される (つまり、例えば 'equalalways'
が機能するなど)。
初期設定: 50 (50%)

*g:netrw_wiw* =1 netrw ウィンドウ/Lexplore ウィンドウを縮小
Expand All @@ -2843,10 +2843,10 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ
=2: 文字数。(Latin a + combining circumflex は
一文字。タブ文字は 1。CJK文字は全角半角と
もに 1。...)
=3: 表示幅 (タブ文字は 1 から |'tabstop'| まで
の可変幅。CJK文字は全角は 2、その他は 1。
アラビア文字の alif は、lam が前置されてい
る場合は 0、そうでなければ 1。...)
=3: 表示幅 (タブ文字は 1 から 'tabstop' までの
可変幅。CJK文字は全角は 2、その他は 1。
ラビア文字の alif は、lam が前置されている
場合は 0、そうでなければ 1。...)

*g:NetrwTopLvlMenu* トップレベルメニューの名前を指定する。初期設定
は "Netrw."。これを変更したい場合は .vimrc で
Expand Down Expand Up @@ -2936,7 +2936,7 @@ netrw を次のように設定すると便利かもしれません: >
:Lexplore (|netrw-:Lexplore|) や |g:netrw_chgwin| にも
興味を持つでしょう。

参照: |g:netrw_chgwin| |netrw-P| |'previewwindow'| |CTRL-W_z| |:pclose|
参照: |g:netrw_chgwin| |netrw-P| 'previewwindow' |CTRL-W_z| |:pclose|


☆以前のウィンドウ *netrw-P* *netrw-prvwin* {{{2
Expand Down Expand Up @@ -3323,8 +3323,8 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で
によって出力されていて、この表示をなくす方法はありません。
cmdheight が 1 (初期設定) の場合にこのメッセージによって
"Press ENTER..." プロンプトが表示されます。|hit-enter| を読ん
でください。|'cmdheight'| を 2 (かそれ以上) に設定するといいか
もしれません
でください。'cmdheight' を 2 (かそれ以上) に設定するといいかも
しれません

*netrw-p10*
P10. ウィンドウを二分割して、左の細いウィンドウをブラウザー表示に、右 {{{2
Expand Down Expand Up @@ -3441,7 +3441,7 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で
実際は最後のバッファだけが残ります。

(Lance) .vimrc に書かれた "set autochdir" が原因です。
(drchip) |'acd'| オプションをセットすると再現できました。
(drchip) 'acd' オプションをセットすると再現できました。
バッファが正しく閉じられていないように見えます。
":ls!" するとそれらの閉じられていないバッファが
表示されます (":ls" では表示されません)。
Expand Down
46 changes: 23 additions & 23 deletions en/pi_netrw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ you'll need to have at least the following in your <.vimrc>:
set nocp " 'compatible' is not set
filetype plugin on " plugins are enabled
<
(see |'cp'| and |:filetype-plugin-on|)
(see 'cp' and |:filetype-plugin-on|)

Netrw supports "transparent" editing of files on other machines using urls
(see |netrw-transparent|). As an example of this, let's assume you have an
Expand Down Expand Up @@ -667,7 +667,7 @@ However, |netrw-ssh-hack| can help with this problem.
5. Activation *netrw-activate* {{{1

Network-oriented file transfers are available by default whenever Vim's
|'nocompatible'| mode is enabled. Netrw's script files reside in your
'nocompatible' mode is enabled. Netrw's script files reside in your
system's plugin, autoload, and syntax directories; just the
plugin/netrwPlugin.vim script is sourced automatically whenever you bring up
vim. The main script in autoload/netrw.vim is only loaded when you actually
Expand Down Expand Up @@ -1170,7 +1170,7 @@ The :NetrwMB command is available outside of netrw buffers (once netrw has been
invoked in the session).

The file ".netrwbook" holds bookmarks when netrw (and vim) is not active. By
default, its stored on the first directory on the user's |'runtimepath'|.
default, its stored on the first directory on the user's 'runtimepath'.

Related Topics:
|netrw-gb| how to return (go) to a bookmark
Expand Down Expand Up @@ -1396,7 +1396,7 @@ used in that count.
See |g:netrw_dirhistmax| for how to control the quantity of history stack
slots. The file ".netrwhist" holds history when netrw (and vim) is not
active. By default, its stored on the first directory on the user's
|'runtimepath'|.
'runtimepath'.

Related Topics:
|netrw-U| changing to a successor directory
Expand Down Expand Up @@ -1515,7 +1515,7 @@ DIRECTORY EXPLORATION COMMANDS {{{2
*netrw-:Explore*
:Explore will open the local-directory browser on the current file's
directory (or on directory [dir] if specified). The window will be
split only if the file has been modified and |'hidden'| is not set,
split only if the file has been modified and 'hidden' is not set,
otherwise the browsing window will take over that window. Normally
the splitting is taken horizontally.
Also see: |netrw-:Rexplore|
Expand Down Expand Up @@ -2400,11 +2400,11 @@ your browsing preferences. (see also: |netrw-settings|)

*g:netrw_alto* change from above splitting to below splitting
by setting this variable (see |netrw-o|)
default: =&sb (see |'sb'|)
default: =&sb (see 'sb')

*g:netrw_altv* change from left splitting to right splitting
by setting this variable (see |netrw-v|)
default: =&spr (see |'spr'|)
default: =&spr (see 'spr')

*g:netrw_banner* enable/suppress the banner
=0: suppress the banner
Expand Down Expand Up @@ -2472,7 +2472,7 @@ your browsing preferences. (see also: |netrw-settings|)

*g:netrw_cursor* = 2 (default)
This option controls the use of the
|'cursorline'| (cul) and |'cursorcolumn'|
'cursorline' (cul) and 'cursorcolumn'
(cuc) settings by netrw:

Value Thin-Long-Tree Wide
Expand All @@ -2487,15 +2487,15 @@ your browsing preferences. (see also: |netrw-settings|)
=8 cul U-cuc cul cuc

Where
u-cul : user's |'cursorline'| initial setting used
u-cuc : user's |'cursorcolumn'| initial setting used
U-cul : user's |'cursorline'| current setting used
U-cuc : user's |'cursorcolumn'| current setting used
cul : |'cursorline'| will be locally set
cuc : |'cursorcolumn'| will be locally set
u-cul : user's 'cursorline' initial setting used
u-cuc : user's 'cursorcolumn' initial setting used
U-cul : user's 'cursorline' current setting used
U-cuc : user's 'cursorcolumn' current setting used
cul : 'cursorline' will be locally set
cuc : 'cursorcolumn' will be locally set

The "initial setting" means the values of
the |'cuc'| and |'cul'| settings in effect when
the 'cuc' and 'cul' settings in effect when
netrw last saw |g:netrw_cursor| >= 5 or when
netrw was initially run.

Expand Down Expand Up @@ -2566,7 +2566,7 @@ your browsing preferences. (see also: |netrw-settings|)
*g:netrw_ffkeep* (default: doesn't exist)
If this variable exists and is zero, then
netrw will not do a save and restore for
|'fileformat'|.
'fileformat'.

*g:netrw_fname_escape* =' ?&;%'
Used on filenames before remote reading/writing
Expand Down Expand Up @@ -2618,7 +2618,7 @@ your browsing preferences. (see also: |netrw-settings|)
.netrwhist).
Netrw uses |expand()|on the string.
default: the first directory on the
|'runtimepath'|
'runtimepath'

*g:netrw_keepdir* =1 (default) keep current directory immune from
the browsing directory.
Expand Down Expand Up @@ -2814,7 +2814,7 @@ your browsing preferences. (see also: |netrw-settings|)
netrwYacc : *.y

In addition, those groups mentioned in
|'suffixes'| are also added to the special
'suffixes' are also added to the special
file highlighting group.
These syntax highlighting groups are linked
to netrwGray or Folded by default
Expand Down Expand Up @@ -2892,7 +2892,7 @@ your browsing preferences. (see also: |netrw-settings|)
used to specify the quantity of lines or
columns for the new window.
If g:netrw_winsize is zero, then a normal
split will be made (ie. |'equalalways'| will
split will be made (ie. 'equalalways' will
take effect, for example).
default: 50 (for 50%)

Expand All @@ -2911,7 +2911,7 @@ your browsing preferences. (see also: |netrw-settings|)
codepoint; a hard tab is one; wide and
narrow CJK are one each; etc.)
=3: virtual length (counting tabs as anything
between 1 and |'tabstop'|, wide CJK as 2
between 1 and 'tabstop', wide CJK as 2
rather than 1, Arabic alif as zero when
immediately preceded by lam, one
otherwise, etc)
Expand Down Expand Up @@ -3003,7 +3003,7 @@ These will:
Related: if you like this idea, you may also find :Lexplore
(|netrw-:Lexplore|) or |g:netrw_chgwin| of interest

Also see: |g:netrw_chgwin| |netrw-P| |'previewwindow'| |CTRL-W_z| |:pclose|
Also see: |g:netrw_chgwin| |netrw-P| 'previewwindow' |CTRL-W_z| |:pclose|


PREVIOUS WINDOW *netrw-P* *netrw-prvwin* {{{2
Expand Down Expand Up @@ -3401,7 +3401,7 @@ Example: Clear netrw's marked file list via a mapping on gu >
not by netrw, and there appears to be no way to work around
it. Coupled with the default cmdheight of 1, this message
causes the "Press ENTER..." prompt. So: read |hit-enter|;
I also suggest that you set your |'cmdheight'| to 2 (or more) in
I also suggest that you set your 'cmdheight' to 2 (or more) in
your <.vimrc> file.

*netrw-p10*
Expand Down Expand Up @@ -3520,7 +3520,7 @@ Example: Clear netrw's marked file list via a mapping on gu >
I expect both buffers to exist, but only the last one does.

(Lance) Problem is caused by "set autochdir" in .vimrc.
(drchip) I am able to duplicate this problem with |'acd'| set.
(drchip) I am able to duplicate this problem with 'acd' set.
It appears that the buffers are not exactly closed;
a ":ls!" will show them (although ":ls" does not).

Expand Down