Skip to content

Commit e345c49

Browse files
committed
Update pi_netrw.{txt,jax}
1 parent eb91dd4 commit e345c49

File tree

2 files changed

+4
-111
lines changed

2 files changed

+4
-111
lines changed

doc/pi_netrw.jax

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_netrw.txt* For Vim バージョン 9.1. Last change: 2024 Jul 13
1+
*pi_netrw.txt* For Vim バージョン 9.1. Last change: 2024 Oct 21
22

33
------------------------------------------------
44
NETRW REFERENCE MANUAL by Charles E. Campbell
@@ -1436,7 +1436,6 @@ NETRW CLEAN *netrw-clean* *:NetrwClean* {{{2
14361436

14371437
*netrw-gx*
14381438
☆特殊ハンドラでブラウジングをカスタマイズ *netrw-x* *netrw-handler* {{{2
1439-
(|netrw_filehandler|も参照)
14401439

14411440
html, gif, jpeg, (word/office) doc などのファイルは専用ハンドラ (コンピュータ
14421441
にあらかじめ備わっているようなツール) で処理するのが一番です。Netrw ではそのよ
@@ -1455,20 +1454,12 @@ Netrw は次の方法で専用ハンドラを決定します:
14551454
< or >
14561455
:let g:netrw_browsex_viewer= "xdg-open"
14571456
<
1458-
g:netrw_browsex_viewer が '-' のときは netrwFileHandler#Invoke() が最初に
1459-
呼ばれます (|netrw_filehandler|参照)。
1460-
14611457
もし、使いたいビューアがリモートURLディレクトリの処理をサポートしていない場合は、
14621458
|g:netrw_browsex_support_remote| を 0 に設定してください。
14631459
* Windows 32 or 64 では、URL と FileProtocolHandler dll が使われます。
14641460
* Gnome (with gnome-open): gnome-open が使われます。
14651461
* KDE (with kfmclient) : kfmclient が使われます。
14661462
* Mac OS X : open が使われます。
1467-
* その他では netrwFileHandler プラグインが使われます。
1468-
1469-
これらの方法ではファイルを処理するためのアプリケーションは拡張子によって決めら
1470-
れます。例えば OpenOffice (*.sfx)、画像表示 (*.jpg, *.gif, etc)、PostScript
1471-
(*.ps, *.eps) などに対応可能です。
14721463

14731464
gx マッピングはすべてのバッファに適用できます。カーソル位置の単語に "gx" を適
14741465
用すると、それに対し netrw は特別な処置を行います (ちょうど "x" が netrw バッ
@@ -1486,44 +1477,6 @@ gx マッピングはすべてのバッファに適用できます。カーソ
14861477
|g:netrw_nogx| 編集中 gx マップを無効にする
14871478
|g:netrw_suppress_gx_mesg| gx がブラウザーの出力を抑制するか制御する
14881479

1489-
*netrw_filehandler*
1490-
1491-
|g:netrw_browsex_viewer| が存在し "-" である場合、netrw は特殊なファイルを vim
1492-
の関数で処理しようと試みます。"x" マップはファイルの拡張子に応じて関数を呼び出
1493-
します。ただし、あらかじめハンドラ関数を定義しておく必要があります。
1494-
>
1495-
例: mypgm.html x -> NFH_html("scp://user@host/some/path/mypgm.html")
1496-
例: mypgm.html x ->
1497-
NFH_html("scp://user@host/some/path/mypgm.html")
1498-
<
1499-
拡張子ごとのハンドラ関数を自分で定義できます。関数のサンプルは
1500-
<autoload/netrwFileHandlers.vim> を参照してください。例: >
1501-
1502-
" NFH_suffix(filename)
1503-
" NFH_拡張子(ファイル名)
1504-
fun! NFH_suffix(filename)
1505-
..ファイル名に応じた処理...
1506-
endfun
1507-
<
1508-
このような関数は .vim/plugin (vimfiles\plugin) ディレクトリ内のファイルで定義
1509-
します。Vim では関数名に記号を含めることができません (アンダースコアは可)。記
1510-
号を含む拡張子をサポートするため、拡張子は次のルールで変換されます: >
1511-
1512-
@ -> AT ! -> EXCLAMATION % -> PERCENT
1513-
: -> COLON = -> EQUAL ? -> QUESTION
1514-
, -> COMMA - -> MINUS ; -> SEMICOLON
1515-
$ -> DOLLAR + -> PLUS ~ -> TILDE
1516-
<
1517-
例: >
1518-
1519-
file.rcs,v -> NFH_rcsCOMMAv()
1520-
<
1521-
他にも変換が必要な文字があるようなら、メールでお知らせください: >
1522-
1523-
(まず埋め込まれた NOSPAM を削除してください)
1524-
1525-
関連設定: |g:netrw_browsex_viewer|
1526-
15271480
*netrw-curdir*
15281481
☆ブックマークを削除する *netrw-mB* {{{2
15291482

@@ -2525,12 +2478,7 @@ netrw ブラウザーの各種設定は変数で管理されていて、それ
25252478
*g:netrw_browsex_viewer* ユーザー指定のビューア: >
25262479
"kfmclient exec"
25272480
"gnome-open"
2528-
< 値が >
2529-
"-"
2530-
< なら、netrwFileHandler() によってファイルを処
2531-
理するスクリプト/関数が呼ばれます。
2532-
(|netrw_filehandler| 参照)
2533-
2481+
<
25342482
*g:netrw_browsex_support_remote*
25352483
指定しているビューアがリモートURLをサポートす
25362484
るかどうかを設定します(|netrw-handler| 参照)。

en/pi_netrw.txt

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_netrw.txt* For Vim version 9.1. Last change: 2024 Jul 13
1+
*pi_netrw.txt* For Vim version 9.1. Last change: 2024 Oct 21
22

33
------------------------------------------------
44
NETRW REFERENCE MANUAL by Charles E. Campbell
@@ -1471,7 +1471,6 @@ permission to remove a file, it will issue an error message.
14711471

14721472
*netrw-gx*
14731473
CUSTOMIZING BROWSING WITH A SPECIAL HANDLER *netrw-x* *netrw-handler* {{{2
1474-
(also see |netrw_filehandler|)
14751474

14761475
Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are
14771476
best seen with a special handler (ie. a tool provided with your computer's
@@ -1490,21 +1489,12 @@ Netrw determines which special handler by the following method:
14901489
< or >
14911490
:let g:netrw_browsex_viewer= "xdg-open"
14921491
<
1493-
If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be
1494-
used instead (see |netrw_filehandler|).
1495-
14961492
If the viewer you wish to use does not support handling of a remote URL
14971493
directory, set |g:netrw_browsex_support_remote| to 0.
14981494
* for Windows 32 or 64, the URL and FileProtocolHandler dlls are used.
14991495
* for Gnome (with gnome-open): gnome-open is used.
15001496
* for KDE (with kfmclient) : kfmclient is used
15011497
* for Mac OS X : open is used.
1502-
* otherwise the netrwFileHandler plugin is used.
1503-
1504-
The file's suffix is used by these various approaches to determine an
1505-
appropriate application to use to "handle" these files. Such things as
1506-
OpenOffice (*.sfx), visualization (*.jpg, *.gif, etc), and PostScript (*.ps,
1507-
*.eps) can be handled.
15081498

15091499
The gx mapping extends to all buffers; apply "gx" while atop a word and netrw
15101500
will apply a special handler to it (like "x" works when in a netrw buffer).
@@ -1521,46 +1511,6 @@ Associated setting variables:
15211511
|g:netrw_nogx| prevent gx map while editing
15221512
|g:netrw_suppress_gx_mesg| controls gx's suppression of browser messages
15231513

1524-
*netrw_filehandler*
1525-
1526-
When |g:netrw_browsex_viewer| exists and is "-", then netrw will attempt to
1527-
handle the special file with a vim function. The "x" map applies a function
1528-
to a file, based on its extension. Of course, the handler function must exist
1529-
for it to be called!
1530-
>
1531-
Ex. mypgm.html x -> NFH_html("scp://user@host/some/path/mypgm.html")
1532-
1533-
< Users may write their own netrw File Handler functions to
1534-
support more suffixes with special handling. See
1535-
<autoload/netrwFileHandlers.vim> for examples on how to make
1536-
file handler functions. As an example: >
1537-
1538-
" NFH_suffix(filename)
1539-
fun! NFH_suffix(filename)
1540-
..do something special with filename..
1541-
endfun
1542-
<
1543-
These functions need to be defined in some file in your .vim/plugin
1544-
(vimfiles\plugin) directory. Vim's function names may not have punctuation
1545-
characters (except for the underscore) in them. To support suffices that
1546-
contain such characters, netrw will first convert the suffix using the
1547-
following table: >
1548-
1549-
@ -> AT ! -> EXCLAMATION % -> PERCENT
1550-
: -> COLON = -> EQUAL ? -> QUESTION
1551-
, -> COMMA - -> MINUS ; -> SEMICOLON
1552-
$ -> DOLLAR + -> PLUS ~ -> TILDE
1553-
<
1554-
So, for example: >
1555-
1556-
file.rcs,v -> NFH_rcsCOMMAv()
1557-
<
1558-
If more such translations are necessary, please send me email: >
1559-
1560-
with a request. (remove the embedded NOSPAM first)
1561-
1562-
Associated setting variable: |g:netrw_browsex_viewer|
1563-
15641514
*netrw-curdir*
15651515
DELETING BOOKMARKS *netrw-mB* {{{2
15661516

@@ -2583,12 +2533,7 @@ your browsing preferences. (see also: |netrw-settings|)
25832533
*g:netrw_browsex_viewer* specify user's preference for a viewer: >
25842534
"kfmclient exec"
25852535
"gnome-open"
2586-
< If >
2587-
"-"
2588-
< is used, then netrwFileHandler() will look for
2589-
a script/function to handle the given
2590-
extension. (see |netrw_filehandler|).
2591-
2536+
<
25922537
*g:netrw_browsex_support_remote*
25932538
specify if the specified viewer supports a
25942539
remote URL. (see |netrw-handler|).

0 commit comments

Comments
 (0)