From b88a3a4bfcbde0190d009a5b50fc7fe9f7d22f73 Mon Sep 17 00:00:00 2001 From: tyru Date: Tue, 9 Feb 2016 00:19:08 +0900 Subject: [PATCH 1/6] Translate pi_netrw.jax (WIP) --- doc/pi_netrw.jax | 420 ++++++++++++++++++++++++----------------------- 1 file changed, 211 insertions(+), 209 deletions(-) diff --git a/doc/pi_netrw.jax b/doc/pi_netrw.jax index 6be34cd2c..d5d40c0c9 100644 --- a/doc/pi_netrw.jax +++ b/doc/pi_netrw.jax @@ -76,9 +76,9 @@ Copyright: Copyright (C) 1999-2015 Charles E Campbell *netrw-copyright* ファイルのマークを外す..............................|netrw-mF| QuickFix リストを使ってファイルをマークする.........|netrw-qF| 正規表現を使ってファイルをマークする................|netrw-mr| - マークファイル: シュルコマンド......................|netrw-mx| - Marked Files: Arbitrary Shell Command, En Bloc......|netrw-mX| - Marked Files: Arbitrary Vim Command.................|netrw-mv| + マークファイル: シェルコマンド......................|netrw-mx| + マークファイル: 一括シェルコマンド..................|netrw-mX| + マークファイル: Vimコマンド.........................|netrw-mv| マークファイル: 圧縮と伸長..........................|netrw-mz| マークファイル: コピー..............................|netrw-mc| マークファイル: Diff................................|netrw-md| @@ -365,9 +365,9 @@ Netrw にはたくさんの変数が用意されていて、好きなように let g:Netrw_funcref= function("MyFuncRef") < - *g:Netrw_UserMaps* specifies a function or |List| of functions which can - be used to set up user-specified maps and functionality. - See |netrw-usermaps| + *g:Netrw_UserMaps* ユーザ定義のマッピングや設定を行う + 関数か関数のリスト(|List|)を指定する。 + |netrw-usermaps| 参照。 *g:netrw_ftp* 変数が存在しない場合はデフォルト ftp 使用 =0 デフォルト ftp を使う (uid password) @@ -407,14 +407,14 @@ Netrw にはたくさんの変数が用意されていて、好きなように *g:netrw_preview* =0 (初期設定) プレビューウィンドウを水平分割で表示する =1 プレビューウィンドウを垂直分割で表示する。 "直前のウィンドウ" (|netrw-P|参照) にも作用します。 - The |g:netrw_alto| variable may be used to provide - additional splitting control: - g:netrw_preview g:netrw_alto result + さらに|g:netrw_alto|変数は分割の方向を制御し + ます。 + g:netrw_preview g:netrw_alto 結果 0 0 |:aboveleft| 0 1 |:belowright| 1 0 |:topleft| 1 1 |:botright| - To control sizing, see |g:netrw_winsize| + サイズを制御するには|g:netrw_winsize|を参照。 *g:netrw_scpport* = "-P" : scp のポート番号を設定するためのオプション *g:netrw_sshport* = "-p" : ssh のポート番号を設定するためのオプション @@ -679,9 +679,8 @@ ftp でパスワードが必要なときは Vim の組み込み関数 |inputsecr filetype plugin indent on endif < -By also including the following lines in your .vimrc, one may have netrw -immediately activate when using [g]vim without any filenames, showing the -current directory: > +さらに次の設定を <.vimrc> ファイルに書くことで、[g]vimをファイル名なしで +起動したときnetrwはすぐさま有効化され、カレントディレクトリを表示します: " Augroup VimStartup: augroup VimStartup @@ -1045,8 +1044,9 @@ QUICK HELP *netrw-quickhelp* {{{2 ファイル/ディレクトリを削除する |netrw-del| 隠しファイルのパターンを編集する |netrw-ctrl-h| 最新の情報に更新する |netrw-ctrl-l| - Browse using a gvim server |netrw-ctrl-r| - Shrink/expand a netrw/explore window |netrw-c-tab| + gvim serverを使ってブラウズする |netrw-ctrl-r| + netrw ウィンドウ/エクスプローラーウインドウを |netrw-c-tab| + 拡大・縮小する - 一つ上のディレクトリに移動する |netrw--| a 隠しファイルの表示を切り替える |netrw-a| 通常表示 @@ -1057,8 +1057,8 @@ QUICK HELP *netrw-quickhelp* {{{2 d ディレクトリを作成する |netrw-d| D ファイル/ディレクトリ(複数可)を削除する |netrw-D| gb 前のブックマークされたディレクトリに移動 |netrw-gb| - gd Force treatment as directory |netrw-gd| - gf Force treatment as file |netrw-gf| + gd 取扱いをディレクトリに強制する |netrw-gd| + gf 取扱いをファイルに強制する |netrw-gf| gh ドットファイルの表示/非表示を切り替える |netrw-gh| i 表示方法を切り替える (thin, long, wide, tree) |netrw-i| mb カレントディレクトリをブックマークする |netrw-mb| @@ -1066,8 +1066,8 @@ QUICK HELP *netrw-quickhelp* {{{2 md マークしたファイルの差分を表示する (3ファイルまで) |netrw-md| me マークしたファイルを引数リストに入れ編集する |netrw-me| mf ファイルをマークする |netrw-mf| - mF Unmark files |netrw-mF| - mg Apply vimgrep to marked files |netrw-mg| + mF ファイルのマークを外す |netrw-mF| + mg マークしたファイルに vimgrep を適用する |netrw-mg| mh マークしたファイルの拡張子を隠しリストに登録/解除 |netrw-mh| mm マークしたファイルをターゲットディレクトリに移動 |netrw-mm| mp マークしたファイルを印刷する |netrw-mp| @@ -1075,9 +1075,9 @@ QUICK HELP *netrw-quickhelp* {{{2 mt 表示中のディレクトリをターゲットディレクトリにする |netrw-mt| mT マークしたファイルに対して ctags を実行 |netrw-mT| mu すべてのマークを解除する |netrw-mu| - mv Apply arbitrary vim command to marked files |netrw-mv| + mv マークしたファイルに対して任意のVimコマンドを実行 |netrw-mv| mx マークしたファイルに対して任意のシェルコマンドを実行 |netrw-mx| - mX Apply arbitrary shell command to marked files en bloc|netrw-mX| + mX マークしたファイルに対して任意のシェルコマンドを一括実行 |netrw-mX| mz マークしたファイルを圧縮/伸長する |netrw-mz| o カーソル位置のファイル/ディレクトリを |netrw-o| 新しいウィンドウで開く。水平分割。 @@ -1086,7 +1086,7 @@ QUICK HELP *netrw-quickhelp* {{{2 P 直前に使用していたウィンドウで開く |netrw-P| qb ブックマークと履歴の一覧を表示する |netrw-qb| qf ファイル情報を表示する |netrw-qf| - qF Mark files using a quickfix list |netrw-qF| + qF QUICKFIX リストを使ってファイルをマークする |netrw-qF| r ソート順を逆にする |netrw-r| R ファイル/ディレクトリ(複数可)の名前を変える |netrw-R| s ソート方法を変える: name, time, file size |netrw-s| @@ -1145,35 +1145,41 @@ QUICK HELP *netrw-quickhelp* {{{2 ブックマークは $HOME/.netrwbook に保存されます。ブックマークは常にソートされま す。 -If there are marked files and/or directories, mb will add them to the bookmark -list. +もしマークされたファイル/ディレクトリが存在すれば、 mb はそれらをブックマーク +に追加します。 *netrw-:NetrwMB* -Addtionally, one may use :NetrwMB to bookmark files or directories. > +また、ファイルかディレクトリをブックマークするのに :NetrwMB も使用できます。 > :NetrwMB[!] [files/directories] -< No bang: enters files/directories into Netrw's bookmark system + (左クリック) でファイルを選択でき |g:netrw_winsize| 初期サイズを制御 -BROWSING USING A GVIM SERVER *netrw-ctrl-r* {{{2 +gvim serverを使ってブラウズする *netrw-ctrl-r* {{{2 -One may keep a browsing gvim separate from the gvim being used to edit. -Use the map on a file (not a directory) in the netrw browser, and it -will use a gvim server (see |g:netrw_servername|). Subsequent use of -(see |netrw-cr|) will re-use that server for editing files. +本機能はファイルを編集するgvimとブラウジングするgvimを分けるものです。 +netrw ブラウザの (ディレクトリではなく) ファイルの上でマッピングを +使用するとgvim serverが使われます (|g:netrw_servername|参照)。 +続けて (|netrw-cr|参照) を押すとファイルを編集するのに +そのサーバーが再利用されます。 -Related topics: +関連項目: |netrw-ctrl-r| |netrw-o| |netrw-p| |netrw-P| |netrw-t| |netrw-v| -Associated setting variables: - |g:netrw_servername| : sets name of server - |g:netrw_browse_split| : controls how will open files +関連設定: + |g:netrw_servername| : このサーバー名がセットされます + |g:netrw_browse_split| : がどのようにファイルを開くのか制御します 一覧表示スタイル変更 (THIN LONG WIDE TREE) *netrw-i* {{{2 @@ -1371,13 +1378,13 @@ Note: |netrw-qb| はブックマークと履歴を両方表示します。履歴 ます。 *.netrwhist* -履歴の量を制御するには |g:netrw_dirhistmax| を参照。 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'|. +履歴の量を制御するには |g:netrw_dirhistmax| を参照。".netrwhist" ファイルは +netrw(とvim)が起動されていない間、履歴を保持します。 +デフォルトでは |'runtimepath'|の最初のディレクトリに保存されます。 Related Topics: - |netrw-U| changing to a successor directory - |g:netrw_home| controls where .netrwhist is kept + |netrw-U| 次のディレクトリに進む + |g:netrw_home| .netrwhist が保存される場所を制御します 次のディレクトリに進む *netrw-U* *netrw-downdir* {{{2 @@ -1402,8 +1409,7 @@ Related Topics: る)。 "dirname" を指定した場合、指定された名前が使われます。 -The "gn" map will take the word below the cursor and use that for -changing the top of the tree listing. +"gn"マップはカーソル位置の単語を取得し、ツリーのトップをそれに変更します。 NETRW CLEAN *netrw-clean* *:NetrwClean* {{{2 @@ -1412,8 +1418,8 @@ NetrwClean を使うと、ホームディレクトリから netrw を削除で |'runtimepath'| の最初のディレクトリから削除します。 NetrwClean! を使うと、|'runtimepath'| のすべてのディレクトリから netrw を削除 -しようと試みます。 Of course, you have to have write/delete permissions -correct to do this. +しようと試みます。これを行うにはもちろん書込/削除権限が正しいものである +必要があります。 どちらのコマンドも、本当に削除していいかどうかを確認するダイアログが最初に表示 されます。ファイルを削除する権限がない場合はエラーメッセージが表示されます。 @@ -1452,6 +1458,8 @@ Netrw は次の方法で専用ハンドラを決定します: れます。例えば OpenOffice (*.sfx)、画像表示 (*.jpg, *.gif, etc)、PostScript (*.ps, *.eps) などに対応可能です。 +gx マッピングはすべてのバッファを拡張します。 + The gx mapping extends to all buffers; apply "gx" while atop a word and netrw will apply a special handler to it (like "x" works when in a netrw buffer). One may also use visual mode (see |visual-start|) to select the text that the @@ -1460,15 +1468,16 @@ text under the cursor; one may change what |expand()| uses via the |g:netrw_gx| variable. Alternatively, one may select the text to be used by gx via first making a visual selection (see |visual-block|). -Associated setting variables: - |g:netrw_gx| control how gx picks up the text under the cursor - |g:netrw_nogx| prevent gx map while editing +関連設定: + |g:netrw_gx| gx がどのようにカーソル位置のテキストを取得するか + 制御します + |g:netrw_nogx| 編集中 gx マップを無効にします *netrw_filehandler* -When |g:netrw_browsex_viewer| exists and is "-", then netrw will attempt to -handle the special file with a vim function. "x" マップはファイルの拡張子に応 -じて関数を呼び出します。ただし、あらかじめハンドラ関数を定義しておく必要があり +|g:netrw_browsex_viewer| が存在し "-" である場合、netrwは特殊なファイルを +vimの関数で処理しようと試みます。 "x" マップはファイルの拡張子に応じて +関数を呼び出します。ただし、あらかじめハンドラ関数を定義しておく必要があり ます。 > 例: mypgm.html x -> NFH_html("scp://user@host/some/path/mypgm.html") @@ -1509,10 +1518,10 @@ handle the special file with a vim function. "x" マップはファイルの拡 {cnt}mB < -If there are marked files, then mB will remove them from the -bookmark list. +もしマークされたファイルが存在するなら、mB はそれらを +ブックマークリストから削除します。 -Alternatively, one may use :NetrwMB! (see |netrw-:NetrwMB|). > +一方で :NetrwMB! を使う人もいるだろう (|netrw-:NetrwMB|参照)。 :NetrwMB! [files/directories] @@ -1609,19 +1618,17 @@ g:netrw_rmdir_cmd によるディレクトリの削除が失敗した場合は す。つまりファイルを開くときには 2 番目のウィンドウが使われるようにな ります。 - The [N] specifies a |g:netrw_winsize| just for the new :Lexplore - window. + [N] は新しい :Lexplore ウィンドウの |g:netrw_winsize| を示します。 - Those who like this method often also often like tree style displays; - see |g:netrw_liststyle|. + この方法を好む人達はよくツリービューも好みます。 + |g:netrw_liststyle|参照。 - Also see: |netrw-C| |g:netrw_browse_split| |g:netrw_wiw| - |netrw-p| |netrw-P| |g:netrw_chgwin| - |netrw-c-tab| |g:netrw_winsize| + 以下も参照: |netrw-C| |g:netrw_browse_split| |g:netrw_wiw| + |netrw-p| |netrw-P| |g:netrw_chgwin| + |netrw-c-tab| |g:netrw_winsize| -:[N]Lexplore! is like :Lexplore, except that the full-height Explorer window - will open on the right hand side and an uninitialized |g:netrw_chgwin| - will be set to 1. +:[N]Lexplore! は :Lexplore と似ているが、縦一杯のエクスプローラーウィンドウ + を左側に開く。その際、未定義の |g:netrw_chgwin| は1にセットされる。 *netrw-:Sexplore* :[N]Sexplore は、常に新しいウィンドウを作成してローカルディレクトリブラウザを @@ -1635,17 +1642,18 @@ g:netrw_rmdir_cmd によるディレクトリの削除が失敗した場合は :Vexplore [dir] は、|:leftabove| 垂直分割を使って :Explore を実行します。 :Vexplore! [dir] は、|:rightbelow| 垂直分割を使って :Explore を実行します。 -The optional parameters are: +省略可能な引数: - [N]: This parameter will override |g:netrw_winsize| to specify the quantity of - rows and/or columns the new explorer window should have. - Otherwise, the |g:netrw_winsize| variable, if it has been specified by the - user, is used to control the quantity of rows and/or columns new - explorer windows should have. + [N]: この引数は新しいエクスプローラーウィンドウの高さかつ/または幅 + の量を指定するために |g:netrw_winsize| を上書きします。 + または |g:netrw_winsize| がユーザにより指定されれば、 + 新しいエクスプローラーウィンドウの高さかつ/または幅の量 + を制御するのに使用されます。 - [dir]: By default, these explorer commands use the current file's directory. - However, one may explicitly provide a directory (path) to use instead; - ie. > + [dir]: デフォルトでは、これらのエクスプローラーコマンドは現在のファイルの + ディレクトリを使用します。しかし、一部のコマンドでは使用される + ディレクトリ(パス)を指定できます。 + 例: > :Explore /some/path < @@ -1654,11 +1662,10 @@ The optional parameters are: ウィンドウを開いてからでないと使えません。 エクスプローラーに戻る~ - When one edits a file using netrw which can occur, for example, - when pressing while the cursor is atop a filename in a netrw - browser window, a :Rexplore issued while editing that file will - return the display to that of the last netrw browser display in - that window. + ユーザーがnetrwを使用してファイルを編集する時、例えば + カーソル位置がnetrw ブラウザーウィンドウ内のファイル名にある時に + を押すと、 :Rexplore が実行されます。これによりそのウィンドウ + での最後のnetrw ブラウザーの表示に戻ることができます。 エクスプローラーから戻る~ 逆に、ディレクトリを開いているとき、:Rexplore を使うと、そのウィン @@ -2034,8 +2041,8 @@ netrw はファイルをマークする方法をいくつか提供していま |netrw-a| ファイル/ディレクトリを隠す |netrw-D| ファイル/ディレクトリを削除する - |netrw-mb| Append marked files to bookmarks - |netrw-mB| Delete marked files from bookmarks + |netrw-mb| マークされたファイルをブックマークに追加します + |netrw-mB| マークされたファイルをブックマークから削除します |netrw-mc| ファイルをターゲットディレクトリにコピーする |netrw-md| マークしたファイルに vimdiff を適用する |netrw-me| マークしたファイルを開く @@ -2045,9 +2052,9 @@ netrw はファイルをマークする方法をいくつか提供していま |netrw-mp| マークしたファイル印刷する |netrw-mt| |netrw-mm| または |netrw-mc| 用のターゲットを設定する |netrw-mT| マークしたファイルのタグを生成する - |netrw-mv| Apply vim command to marked files + |netrw-mv| マークしたファイルにVimコマンドを適用する |netrw-mx| マークしたファイルにシェルコマンドを適用する - |netrw-mX| Apply shell command to marked files, en bloc + |netrw-mX| マークしたファイルに一括でシェルコマンドを適用する |netrw-mz| マークしたファイルを圧縮/伸長する |netrw-O| マークしたファイルを取得する |netrw-R| マークしたファイルの名前を変更する @@ -2111,20 +2118,20 @@ regexp: " というプロンプトが表示されるので、例えば *.c$ の を使えるようにする予定です (また別のオプションで)。 -MARKED FILES, ARBITRARY VIM COMMAND *netrw-mv* {{{2 - (See |netrw-mf| and |netrw-mr| for how to mark files) - (uses the local marked-file list) +マークファイル: Vimコマンド *netrw-mv* {{{2 + (マークの設定方法は |netrw-mf| と |netrw-mr| を参照) + (ローカルマークファイルリスト使用) -The "mv" map causes netrw to execute an arbitrary vim command on each file on -the local marked file list, individually: +"mv"マップはローカルマークファイルリストのファイルに対して +netrw にそれぞれ任意のvimコマンドを実行させます: * 1split * sil! keepalt e file * run vim command * sil! keepalt wq! -A prompt, "Enter vim command: ", will be issued to elicit the vim command -you wish used. +"Enter vim command: " というプロンプトが出て実行するvimコマンドが +訊かれます。 マークファイル: 任意のシェルコマンド *netrw-mx* {{{2 @@ -2136,34 +2143,34 @@ you wish used. べての "%" は実行ごとにファイル名に置換されます。"%" が無い場合はコマンドの後 ろにスペースとファイル名が付けられます。 -Example: - (mark files) +例: + (ファイルをマークする) mx - Enter command: cat + コマンドを入力する: cat - The result is a series of shell commands: + これにより次のシェルコマンドが実行されます: cat 'file1' cat 'file2' ... -MARKED FILES, ARBITRARY SHELL COMMAND, EN BLOC *netrw-mX* {{{2 - (See |netrw-mf| and |netrw-mr| for how to mark files) - (uses the global marked-file list) +マークファイル: 一括シェルコマンド *netrw-mX* {{{2 + (マークの設定方法は |netrw-mf| と |netrw-mr| を参照) + (グローバルマークファイルリスト使用) -Upon activation of the 'mX' map, netrw will query the user for some (external) -command to be applied to all marked files on the global marked file list. The -"en bloc" means that one command will be executed on all the files at once: > +'mX'マップの実行の際、netrw はユーザーにグローバルマークファイルリストに +対して適用する外部コマンドを尋ねます。 "一括" の意味するものは、 +一つのコマンドがすべてのファイルに対して一度に実行されるからです: command files -This approach is useful, for example, to select files and make a tarball: > +このアプローチは、例えばtarballを作るためのファイルを選択するのに便利です: > - (mark files) + (ファイルをマークする) mX - Enter command: tar cf mynewtarball.tar + コマンドを入力する: tar cf mynewtarball.tar < -The command that will be run with this example: +この例により実行されるコマンド: tar cf mynewtarball.tar 'file1' 'file2' ... @@ -2179,9 +2186,8 @@ The command that will be run with this example: 伸長には、拡張子と伸長コマンドを関連付けた |Dictionary| が使われます。 |g:netrw_decompress| 参照。 -Remember that one can mark multiple files by regular expression -(see |netrw-mr|); this is particularly useful to facilitate compressing and -decompressing a large number of files. +正規表現で複数ファイルをマークできることを思い出してください (|netrw-mr|参照)。 +これはたくさんのファイルを圧縮・解凍するのに便利です。 関連設定: |g:netrw_compress| |g:netrw_decompress| @@ -2193,13 +2199,13 @@ mt (|netrw-mt|) でコピー先ディレクトリを選択し、ファイルの 動し、mf (|netrw-mf|) でファイルを選択し、"mc" を押します。カレントウィンドウ (mf を実行した場所) からターゲットディレクトリへ、ファイルがコピーされます。 -If one does not have a target directory set with |netrw-mt|, then netrw -will query you for a directory to copy to. +もし |netrw-mt| でセットした移動先ディレクトリがない場合、 +netrw はコピーするディレクトリを尋ねます。 -One may also copy directories and their contents (local only) to a target -directory. +また、ディレクトリとその内容 (ローカルに限ります) を +移動先ディレクトリにコピーすることもできます。 -Associated setting variables: +関連設定: |g:netrw_localcopycmd| |g:netrw_localcopydircmd| |g:netrw_ssh_cmd| @@ -2231,19 +2237,18 @@ Associated setting variables: ! /pattern/[g][j] pattern < -With /pattern/, editing will start with the first item on the |quickfix| list -that vimgrep sets up (see |:copen|, |:cnext|, |:cprevious|). The |:vimgrep| -command is in use, so without 'g' each line is added to quickfix list only -once; with 'g' every match is included. +/pattern/ でvimgrepによりセットされた |quickfix| リストの最初の項目が +開かれます (|:copen|, |:cnext|, |:cprevious| 参照)。'g' なしの場合、 +マッチしたすべての行が一度だけ追加されます。'g' ありの場合、すべてのマッチが +追加されます。 -With /pattern/j, "mg" will winnow the current marked file list to just those -marked files also possessing the specified pattern. Thus, one may use > +/pattern/j により "mg" はマークされたファイルから指定されたパターンを持つもの +のみに選別します。 > mr ...file-pattern... mg /pattern/j < -to have a marked file list satisfying the file-pattern but also restricted to -files containing some desired pattern. +上記のコマンドはfile-patternにマッチし、またpatternを持つものに限られます。 拡張子による表示/非表示 *netrw-mh* {{{2 (マークの設定方法は |netrw-mf| と |netrw-mr| を参照) @@ -2299,8 +2304,8 @@ hardcopy を実行し、一行ウィンドウを閉じます。 * カーソルがバナーの上にある場合も、netrw ウィンドウに表示されているディレク トリがターゲットとして設定されます。 - Unless the target already is the current directory. In which case, - typing "mf" clears the target. + ターゲットがカレントディレクトリではない場合、"mf" と入力すると + ターゲットを解除します。 * カーソルがディレクトリの上にある場合は、そのディレクトリがターゲットとして 設定されます。 @@ -2309,8 +2314,8 @@ hardcopy を実行し、一行ウィンドウを閉じます。 このコマンドは || を使うので、ディレクトリ名のスペースはエスケープ しなくても構いません。 - * With mouse-enabled vim or with gvim, one may select a target by using - + * マウスが有効化されたvimかgvimでは、ターゲットを によって + 選択できます。 ターゲットは Vim セッションで一つしか設定できません。ターゲットはスクリプト変 数 (|s:var|参照) で管理されており、(Vim のインスタンスごとの) すべての netrw @@ -2388,10 +2393,10 @@ netrw によって url が開かれ、タグに移動できます。 マークファイル: マーク解除 *netrw-mu* {{{2 (|netrw-mf| と |netrw-mr| を参照) -"mu" マップを使うと現在設定されているすべてのマークが解除されます。 This -command differs from "mF" as the latter only unmarks files in the current -directory whereas "mu" will unmark global and all buffer-local marked files. -(see |netrw-mF|) +"mu" マップを使うと現在設定されているすべてのマークが解除されます。 +このコマンドは "mF" とは異なる。"mu" はすべてのグローバルマークファイル +リストとバッファーローカルマークファイルリストを解除するのに対し、 +"mF" はカレントディレクトリのファイルの選択のみを解除する (|netrw-mF|参照)。 *netrw-browser-settings* @@ -2436,14 +2441,14 @@ netrw ブラウザの各種設定は変数で管理されていて、それを =4: "P" で開く (以前のウィンドウで開く) Note: |g:netrw_preview| を使うと (水平分割 から変更して) 垂直分割にできます。 - =[servername,tab-number,window-number] - Given a |List| such as this, a remote server - named by the "servername" will be used for - editing. It will also use the specified tab - and window numbers to perform editing - (see |clientserver|, |netrw-ctrl-r|) - This option does not affect |:Lexplore| - windows. + =[サーバー名,タブ番号,ウィンドウ番号] + このような |List| を指定すると、 + "サーバー名" で指定したリモートサーバーは + 編集に使われる。また、指定されたタブと + ウィンドウも使われる (|clientserver|, + |netrw-ctrl-r|参照)。 + このオプションは |:Lexplore| のウィンドウには + 影響を与えない。 関連項目: |g:netrw_alto| |g:netrw_altv| @@ -2581,9 +2586,10 @@ netrw ブラウザの各種設定は変数で管理されていて、それを glob() を適用する前にエスケープされる。 *g:netrw_gx* ="" - This option controls how gx (|netrw-gx|) picks - up the text under the cursor. See |expand()| - for possibilities. + このオプションは gx (|netrw-gx|)がどのように + カーソル位置のテキストを取得するかを制御 + します。その機能については |expand()| を + 参照してください。 *g:netrw_hide* "a" マップを制御する (|netrw-a| 参照) =0 : すべて表示 @@ -2602,20 +2608,19 @@ netrw ブラウザの各種設定は変数で管理されていて、それを 現在のブラウジングディレクトリはb:netrw_curdir に保存されます。 (|netrw-c| 参照) - *g:netrw_keepj* ="keepj" (default) netrw attempts to keep the - |:jumps| table unaffected. - ="" netrw will not use |:keepjumps| with - exceptions only for the - saving/restoration of position. + *g:netrw_keepj* ="keepj" (デフォルト) netrw は |:jumps| の表を + 保つよう試みます。 + ="" netrw は保存/位置の復元以外に + |:keepjumps|を使わなくなります。 *g:netrw_list_cmd* リモートディレクトリのファイル一覧取得コマンド 初期設定: (sshがあるなら) "ssh HOSTNAME ls -FLa" - *g:netrw_list_cmd_options* If this variable exists, then its contents are - appended to the g:netrw_list_cmd. For - example, use "2>/dev/null" to get rid of banner - messages on unix systems. + *g:netrw_list_cmd_options* もしこの変数が存在するなら、値は + g:netrw_list_cmd に追加されます。 + 例えば、 "2>/dev/null" はバナー用の + メッセージを除去します。 *g:netrw_liststyle* デフォルトのファイル一覧表示スタイル: @@ -2645,8 +2650,8 @@ netrw ブラウザの各種設定は変数で管理されていて、それを *g:netrw_localcopydircmd* ="cp -R" Linux/Unix/MacOS/Cygwin ="xcopy /e /c /h/ /i /k" Windows - Copies directories to target directory. - (|netrw-mc|, |netrw-mt|) + ディレクトリをターゲットディレクトリに + コピーします (|netrw-mc|, |netrw-mt|)。 *g:netrw_localmkdir* ローカルディレクトリ作成コマンド 初期設定: "mkdir" @@ -2683,10 +2688,10 @@ netrw ブラウザの各種設定は変数で管理されていて、それを この変数を定義するとバルーン評価は抑制される。 (参照 |'ballooneval'|) - *g:netrw_usetab* if this variable exists and is non-zero, then - the map supporting shrinking/expanding a - Lexplore or netrw window will be enabled. - (see |netrw-c-tab|) + *g:netrw_usetab* もしこの変数が存在し、その値が 非0 なら、 + マップはLexploreまたはnetrw ウィンドウの + 縮小・拡張をサポートするようになります。 + (|netrw-c-tab|参照) *g:netrw_remote_mkdir* ftp 経由でのリモートディレクトリ作成コマンド (|g:netrw_mkdir_cmd| も参照) @@ -2722,12 +2727,10 @@ netrw ブラウザの各種設定は変数で管理されていて、それを *g:netrw_rmf_cmd* リモートのソフトリンク削除コマンド 初期設定: "ssh USEPORT HOSTNAME rm -f" - *g:netrw_servername* use this variable to provide a name for - |netrw-ctrl-r| to use for its server. - default: "NETRWSERVER" + *g:netrw_servername* |netrw-ctrl-r| で使うサーバー名 + デフォルト: "NETRWSERVER" - *g:netrw_sort_by* sort by "name", "time", "size", or - "exten". + *g:netrw_sort_by* ソートの項目: "name", "time", "size", "exten" 初期設定: "name" *g:netrw_sort_direction* ソートの順序: "normal" or "reverse" @@ -2833,15 +2836,15 @@ netrw ブラウザの各種設定は変数で管理されていて、それを す。 g:netrw_winsize が 0 より小さい場合、新しい ウィンドウの行または列の大きさにはその値の絶対 - 値が使われる。 + 値が使われます。 g:netrw_winsize がゼロなら、通常どおりウィン - ドウが分割される (つまり、例えば + ドウが分割されます (つまり、例えば |'equalalways'| が機能するなど)。 初期設定: 50 (50%) - *g:netrw_wiw* =1 specifies the minimum window width to use - when shrinking a netrw/Lexplore window - (see |netrw-c-tab|). + *g:netrw_wiw* =1 netrw ウィンドウ/Lexplore ウィンドウ + を縮小する時に使われる最小のウィンドウ幅を + 指定します (|netrw-c-tab|参照)。 *g:netrw_xstrlen* マルチバイト文字列の長さを計算する方法を指定す る。 (thanks to N Weibull, T Mechelynck) @@ -2946,8 +2949,9 @@ netrw を次のように設定すると便利かもしれません: > 示ウィンドウは列の幅の 30% しか使わないので、残りの領域をプレビュー ウィンドウの表示に使用できる。 - Related: if you like this idea, you may also find :Lexplore - (|netrw-:Lexplore|) or |g:netrw_chgwin| of interest + 関連: もしあなたがこのアイデアを気に入ったなら、 + :Lexplore (|netrw-:Lexplore|) や |g:netrw_chgwin| にも + 興味を持つだろう。 参照: |g:netrw_chgwin| |netrw-P| |'previewwindow'| @@ -2995,32 +2999,30 @@ netrw を次のように設定すると便利かもしれません: > 移動 (名前変更) したいファイル/ディレクトリにカーソルを移動して "R" を押し ます。プロンプトが表示されるのでファイル/ディレクトリの移動先を入力してく ださい。"V" コマンド (ビジュアル選択) で複数の行を選択して "R" を使うこと - もできます。 ; you will be queried for each file as to what you want it - renamed to. + もできます。それぞれのファイルに対して、リネームしたいファイル名を + 尋ねられます。 マークされたファイルがある場合: (|netrw-mf| 参照) マークされたファイルを移動 (名前変更) します。プロンプトが表示されるので ファイル/ディレクトリの移動先を入力してください。 - If you answer a renaming query with a "s/frompattern/topattern/", then - subsequent files on the marked file list will be renamed by taking each - name, applying that substitute, and renaming each file to the result. - As an example : > + もしあなたが s/frompattern/topattern/ と入力したら、マークファイルリスト + のそれぞれのファイル名を取得し、置換を適用し、ファイル名を変更します。 + 例: > - mr [query: reply with *.c] - R [query: reply with s/^\(.*\)\.c$/\1.cpp/] + mr [質問: *.c と入力] + R [質問: s/^\(.*\)\.c$/\1.cpp/ と入力] < - This example will mark all *.c files and then rename them to *.cpp - files. + この例ではすべての *.c ファイルを *.cpp に変更します。 - The ctrl-X character has special meaning for renaming files: > + ctrl-Xはファイルをリネームするのに特別な意味を持つ: > - : a single ctrl-x tells netrw to ignore the portion of the response - lying between the last '/' and the ctrl-x. + : 単一の ctrl-x は netrw に最後の '/' と ctrl-x + の間の分割の位置を伝えます。 - : a pair of contiguous ctrl-x's tells netrw to ignore any - portion of the string preceding the double ctrl-x's. + : 連続した ctrl-x は2つの ctrl-x の前のすべての分割を + 無視します。 < 警告:~ @@ -3061,10 +3063,10 @@ V (|linewise-visual|) で選択することで複数のファイル/ディレク * [count]C カウントを指定すると |netrw-cr| でファイルを開くときに指定 された番号のウィンドウが使用されます。 - * :NetrwC will set |g:netrw_chgwin| to the current window + * :NetrwC は |g:netrw_chgwin| をカレントウィンドウにセットします。 - * :NetrwC win# will set |g:netrw_chgwin| to the specified window - number + * :NetrwC win# は |g:netrw_chgwin| を指定されたウィンドウ番号に + セットします。 次のように設定すると > let g:netrw_chgwin= -1 @@ -3075,32 +3077,32 @@ V (|linewise-visual|) で選択することで複数のファイル/ディレク 関連設定: |g:netrw_chgwin| -SHRINKING OR EXPANDING A NETRW OR LEXPLORE WINDOW *netrw-c-tab* {{{2 +netrw ウィンドウ/エクスプローラーウインドウを拡大・縮小する *netrw-c-tab* {{{2 -The key will toggle a netrw or |:Lexplore| window's width, -but only if |g:netrw_usetab| exists and is non-zero (and, of course, -only if your terminal supports differentiating from a plain -). +キーはnetrwまたは |:Lexplore| ウィンドウの幅をトグルします。 +しかしこれは|g:netrw_usetab|が存在し 非0 である場合のみ有効です +(また、もちろんあなたの端末が を区別できる場合のみ)。 - * If the current window is a netrw window, toggle its width - (between |g:netrw_wiw| and its original width) + * もし現在のウィンドウがnetrw ウィンドウなら、その幅をトグルします + (|g:netrw_wiw|と元の幅を行き来します) - * Else if there is a |:Lexplore| window in the current tab, toggle - its width + * 次に、もし現在のタブに |:Lexplore| ウィンドウが存在するなら、 + その幅をトグルします - * Else bring up a |:Lexplore| window + * 最後に、 |:Lexplore| ウィンドウを持ち上げます -If |g:netrw_usetab| exists or is zero, or if there is a pre-existing mapping -for , then the will not be mapped. One may map something other -than a , too: (but you'll still need to have had g:netrw_usetab set) > +もし |g:netrw_usetab| が存在し 非0 の場合、もしくはすでに にマッピング +が存在するなら、 はマッピングされません。 もし 以外にマップ +されていた場合も同様です: (しかしその場合も g:netrw_usetab をセットしている +必要があります) nmap (whatever) NetrwShrink < -Related topics: |:Lexplore| -Associated setting variable: |g:netrw_usetab| +関連項目: |:Lexplore| +関連設定: |g:netrw_usetab| -USER SPECIFIED MAPS *netrw-usermaps* {{{1 +ユーザー定義のマッピング *netrw-usermaps* {{{1 One may make customized user maps. Specify a variable, |g:Netrw_UserMaps|, to hold a |List| of lists of keymap strings and function names: > From ccfa1b732aacf7c48d2d3382a9944406d083cc57 Mon Sep 17 00:00:00 2001 From: tyru Date: Wed, 10 Feb 2016 00:28:43 +0900 Subject: [PATCH 2/6] Update * `*netrw-usermaps*` * `*netrw-p17*` * `*netrw-P18*` * `*netrw-P19*` * `*netrw-P20*` * `*netrw-P21*` * `*netrw-P22*` --- doc/pi_netrw.jax | 152 +++++++++++++++++++++++++---------------------- 1 file changed, 80 insertions(+), 72 deletions(-) diff --git a/doc/pi_netrw.jax b/doc/pi_netrw.jax index d5d40c0c9..d16caf95b 100644 --- a/doc/pi_netrw.jax +++ b/doc/pi_netrw.jax @@ -2395,7 +2395,7 @@ netrw によって url が開かれ、タグに移動できます。 "mu" マップを使うと現在設定されているすべてのマークが解除されます。 このコマンドは "mF" とは異なる。"mu" はすべてのグローバルマークファイル -リストとバッファーローカルマークファイルリストを解除するのに対し、 +リストとバッファローカルマークファイルリストを解除するのに対し、 "mF" はカレントディレクトリのファイルの選択のみを解除する (|netrw-mF|参照)。 @@ -3104,47 +3104,47 @@ netrw ウィンドウ/エクスプローラーウインドウを拡大・縮小 ユーザー定義のマッピング *netrw-usermaps* {{{1 -One may make customized user maps. Specify a variable, |g:Netrw_UserMaps|, -to hold a |List| of lists of keymap strings and function names: > +ユーザーはユーザー定義のマップを作成することができます。 +キーマップの文字列と関数名の |List| を保持する|g:Netrw_UserMaps| を +指定してください: > [["keymap-sequence","ExampleUserMapFunc"],...] < -When netrw is setting up maps for a netrw buffer, if |g:Netrw_UserMaps| -exists, then the internal function netrw#UserMaps(islocal) is called. -This function goes through all the entries in the |g:Netrw_UserMaps| list: +netrw が netrw バッファ用のマップを設定する時、もし |g:Netrw_UserMaps| +が存在するなら、内部関数 netrw#UserMaps(islocal) が呼ばれます。 +この関数は |g:Netrw_UserMaps| のすべての要素を走査します: - * sets up maps: > + * マップを設定します: > nno KEYMAP-SEQUENCE :call s:UserMaps(islocal,"ExampleUserMapFunc") -< * refreshes if result from that function call is the string - "refresh" - * if the result string is not "", then that string will be - executed (:exe result) - * if the result is a List, then the above two actions on results - will be taken for every string in the result List +< * その関数からの返り値が文字列の "refresh" ならリフレッシュします。 + * もしその返り値の文字列が "" ではない場合、その文字列は + 実行されます (:exe 返り値) + * もし返り値が List なら、上記の結果に対する2つのアクションは + List の中のすべての文字列に行われます。 -The user function is passed one argument; it resembles > +ユーザー関数には1つの引数が渡されます。以下のように > fun! ExampleUserMapFunc(islocal) < -where a:islocal is 1 if its a local-directory system call or 0 when -remote-directory system call. +もしそれがローカルディレクトリの呼び出しなら a:islocal は 1、 +もしそれがリモートディレクトリの呼び出しなら a:islocal は 0 になります。 -Use netrw#Expose("varname") to access netrw-internal (script-local) - variables. -Use netrw#Modify("varname",newvalue) to change netrw-internal variables. -Use netrw#Call("funcname"[,args]) to call a netrw-internal function with - specified arguments. +netrw#Expose("varname") netrw の (スクリプトローカルな) + 内部変数にアクセスできます。 +netrw#Modify("varname",newvalue) netrw の内部変数を変更できます。 +netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で + 呼び出すことができます。 -Example: Get a copy of netrw's marked file list: > +例: netrw のマークファイルリストのコピーを取得します: > let netrwmarkfilelist= netrw#Expose("netrwmarkfilelist") < -Example: Modify the value of netrw's marked file list: > +例: netrw のマークファイルリストの値を変更します: > call netrw#Modify("netrwmarkfilelist",[]) < -Example: Clear netrw's marked file list via a mapping on gu > +例: netrw のマークファイルリストを gu マッピング経由でクリアします: > " ExampleUserMap: {{{2 fun! ExampleUserMap(islocal) call netrw#Modify("netrwmarkfilelist",[]) @@ -3349,13 +3349,13 @@ Example: Clear netrw's marked file list via a mapping on gu > P11. ウィンドウを二分割して、左の細いウィンドウをブラウザ表示に、右の ウィンドウをファイル編集用にしたいんだけど、どうすればいいの? - You probably want netrw running as in a side window. If so, you - will likely find that ":[N]Lexplore" does what you want. The - optional "[N]" allows you to select the quantity of columns you - wish the |:Lexplore|r window to start with (see |g:netrw_winsize| - for how this parameter works). + おそらく netrw を横のウィンドウで表示させたいのではないでしょう + か。もしそうなら、 ":[N]Lexplore" が目的のものかと思います。 + 省略可能な "[N]" で :Lexplorer ウィンドウの起動時の幅を + 指定することができます (設定値については |g:netrw_winsize| + を参照)。 - Previous solution: + 以前の解決法: * <.vimrc> に次の設定を書く: let g:netrw_altv = 1 @@ -3450,76 +3450,84 @@ Example: Clear netrw's marked file list via a mapping on gu > ください。 *netrw-p17* - P17. Netrw is closing buffers on its own. - What steps will reproduce the problem? - 1. :Explore, navigate directories, open a file - 2. :Explore, open another file - 3. Buffer opened in step 1 will be closed. o - What is the expected output? What do you see instead? - 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. - It appears that the buffers are not exactly closed; - a ":ls!" will show them (although ":ls" does not). + P17. Netrw が自身のバッファを閉じてしまう。 + どうやって問題を再現させればいいの? + 1. :Explore する、ディレクトリを歩く、ファイルを開く + 2. :Explore する、別のファイルを開く + 3. ステップ1で開いたバッファが閉じる + 期待される出力は何ですか? + あなたの環境では何が表示されますか? + 私は両方のバッファが存在していて欲しいけど、 + 実際は最後のバッファだけが残る。 + + (Lance) .vimrc に書かれた "set autochdir" が原因だ。 + (drchip) |'acd'| オプションをセットすると再現できた。 + バッファが正しく閉じられていないように見える。 + ":ls!" すると閉じられていないバッファが表示される + (":ls" では表示されない)。 *netrw-P18* - P18. How to locally edit a file that's only available via - another server accessible via ssh? - See http://stackoverflow.com/questions/12469645/ + P18. ssh でのみ到達可能なサーバー上のファイルを + ローカルで編集するにはどうしたらいいの? + http://stackoverflow.com/questions/12469645/ 参照。 "Using Vim to Remotely Edit A File on ServerB Only Accessible From ServerA" *netrw-P19* - P19. How do I get numbering on in directory listings? - With |g:netrw_bufsettings|, you can control netrw's buffer - settings; try putting > + P19. ディレクトリのファイル一覧表示の際に行番号を表示するには + どうしたらいいの? + |g:netrw_bufsettings| によって netrw バッファの設定を + 制御できる。次を .vimrc に書いてみて欲しい。 > let g:netrw_bufsettings="noma nomod nu nobl nowrap ro nornu" -< in your .vimrc. If you'd like to have relative numbering - instead, try > +< もし相対的な行番号を表示したかったら代わりにこれを + 試して欲しい。 > let g:netrw_bufsettings="noma nomod nonu nobl nowrap ro rnu" < *netrw-P20* - P20. How may I have gvim start up showing a directory listing? - Try putting the following code snippet into your .vimrc: > + P20. ディレクトリのファイル一覧を表示して gvim を起動できますか? + 次のコードを .vimrc に書いてみて欲しい: > augroup VimStartup au! au VimEnter * if expand("%") == "" && argc() == 0 && \ (v:servername =~ 'GVIM\d*' || v:servername == "") \ | e . | endif augroup END -< You may use Lexplore instead of "e" if you're so inclined. - This snippet assumes that you have client-server enabled - (ie. a "huge" vim version). +< その気があれば "e" の代わりに Lexplore を使うこともできる。 + このコードは client-server を有効化しているのを仮定している + (例えば "huge" バージョンのvim)。 *netrw-P21* - P21. I've made a directory (or file) with an accented character, but - netrw isn't letting me enter that directory/read that file: + P21. アクセント記号付き文字を含んだディレクトリ (またはファイル) + を作成したけど、 netrw でそのディレクトリに入ったり、 + そのファイルを読み込んだりできません: - Its likely that the shell or o/s is using a different encoding - than you have vim (netrw) using. A patch to vim supporting - "systemencoding" may address this issue in the future; for - now, just have netrw use the proper encoding. For example: > + おそらくあなたのシェルかo/sが、あなたのvimが使っている + エンコーディングと異なるエンコーディングを使っていることが + 原因ではないでしょうか。 将来 vim に "systemencoding" を + サポートさせるパッチがこれを解決してくれるのではないで + しょうか。今は netrw に適切なエンコーディングを使わせて + ください。例えば: > au FileType netrw set enc=latin1 < *netrw-P22* - P22. I get an error message when I try to copy or move a file: + P22. ファイルをコピーもしくは移動させようとするとエラーが出ます: **error** (netrw) tried using g:netrw_localcopycmd; it doesn't work! - What's wrong? - - Netrw uses several system level commands to do things (see + 何がおかしいの? + Netrw はコピーや移動を行うためにいくつかのシステム用コマンドを + 持っています (次を参照 |g:netrw_localcopycmd|, |g:netrw_localmovecmd|, - |g:netrw_localrmdir|, |g:netrw_mkdir_cmd|). - - You may need to adjust the default commands for one or more of - these commands by setting them properly in your .vimrc. Another - source of difficulty is that these commands use vim's local - directory, which may not be the same as the browsing directory - shown by netrw (see |g:netrw_keepdir|). + |g:netrw_localrmdir|, |g:netrw_mkdir_cmd|)。 + + もしかしたら .vimrc でそれらを適切に設定して、 + デフォルトのコマンドを1つかそれ以上調整する必要が + あるかもしれません。また違う面で難しいのは + これらのコマンドは vim のローカルディレクトリを使用します。 + それは netrw でブラウズしているディレクトリとは同じでは + ないかもしれません (|g:netrw_keepdir| 参照)。 ============================================================================== From 1601cadd8f22452b1b80033020c9606862c85aee Mon Sep 17 00:00:00 2001 From: tyru Date: Wed, 10 Feb 2016 23:23:03 +0900 Subject: [PATCH 3/6] Translated `*netrw-debug*` --- doc/pi_netrw.jax | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/doc/pi_netrw.jax b/doc/pi_netrw.jax index d16caf95b..2cccf4f5f 100644 --- a/doc/pi_netrw.jax +++ b/doc/pi_netrw.jax @@ -3533,8 +3533,8 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で ============================================================================== 11. Netrw をデバッグする *netrw-debug* {{{1 -Step 1: check that the problem you've encountered hasn't already been resolved -by obtaining a copy of the latest (often developmental) netrw at: +ステップ1: あなたが出くわした問題が以下の netrw の最新版(開発版)のコピーを +取得することで解決するか確認してください: http://www.drchip.org/astronaut/vim/index.html#NETRW @@ -3543,36 +3543,35 @@ by obtaining a copy of the latest (often developmental) netrw at: /usr/local/share/vim/vim7x/plugin/netrwPlugin.vim /usr/local/share/vim/vim7x/autoload/netrw.vim < -which is loaded automatically at startup (assuming :set nocp). If you -installed a new netrw, then it will be located at > +これらは起動時に自動的に読み込まれます (:set nocp されている場合)。 +新しい netrw を次の場所にインストールしてください。 > $HOME/.vim/plugin/netrwPlugin.vim $HOME/.vim/autoload/netrw.vim < -Step 2: assuming that you've installed the latest version of netrw, -check that your problem is really due to netrw. Create a file -called netrw.vimrc with the following contents: > +ステップ2: netrw の最新版をインストールしたら、その問題が本当に netrw +によるものか確認してください。 netrw.vimrc という次の内容のファイルを作成 +してください。 > set nocp so $HOME/.vim/plugin/netrwPlugin.vim < -Then run netrw as follows: > +次に netrw を次のように起動してください: > - vim -u netrw.vimrc --noplugins [some path here] + vim -u netrw.vimrc --noplugins [他にパスがあればここに追加] < -Perform whatever netrw commands you need to, and check that the problem is -still present. This procedure sidesteps any issues due to personal .vimrc -settings and other plugins. If the problem does not appear, then you need -to determine what setting in your .vimrc is causing the conflict with netrw -or which plugin. +必要な netrw のコマンドを実行し、問題がまだ起きていることを確認してください。 +この手順は個人の .vimrc の設定や他のプラグインによる問題を回避するためです。 +もし問題が再現しなくなったら、あなたの .vimrc のどの設定が netrw かあるいは +他のプラグインと衝突しているかを見極める必要があります。 -Step 3: If the problem still is present, then get a debugging trace from -netrw: +ステップ3: 問題がまだ起きているようなら、netrw からデバッグトレースを取得して +ください: 1. スクリプトを入手してください: http://www.drchip.org/astronaut/vim/index.html#DECHO - or + または http://vim.sourceforge.net/scripts/script.php?script_id=120 Decho.vim は "vimball" の形で提供されています。|vimball-intro|参照。 From d8a6e4d7b9b00c31231511d5b3a4256c1650045d Mon Sep 17 00:00:00 2001 From: tyru Date: Thu, 11 Feb 2016 01:00:48 +0900 Subject: [PATCH 4/6] Translate pi_netrw.jax 1. According to `git diff f8de019^ f8de019 -- doc/pi_netrw.jax`, check if there are any untranslated texts 2. I removed `>` at the beginning of code blocks wrongly, so check horizontally seeing 1's diff 3. Translate `(remove NOSPAM from Campbell's email first)` at the beginning of file --- doc/pi_netrw.jax | 102 +++++++++++++++++++++++------------------------ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/doc/pi_netrw.jax b/doc/pi_netrw.jax index 2cccf4f5f..688f7b9fe 100644 --- a/doc/pi_netrw.jax +++ b/doc/pi_netrw.jax @@ -4,7 +4,7 @@ NETRW REFERENCE MANUAL by Charles E. Campbell ------------------------------------------------ Author: Charles E. Campbell - (remove NOSPAM from Campbell's email first) + (まずメールアドレスから NOSPAM を削除してください) Copyright: Copyright (C) 1999-2015 Charles E Campbell *netrw-copyright* The VIM LICENSE applies to the files in this package, including @@ -680,7 +680,7 @@ ftp でパスワードが必要なときは Vim の組み込み関数 |inputsecr endif < さらに次の設定を <.vimrc> ファイルに書くことで、[g]vimをファイル名なしで -起動したときnetrwはすぐさま有効化され、カレントディレクトリを表示します: +起動したときnetrwは即座に有効化され、カレントディレクトリを表示します: > " Augroup VimStartup: augroup VimStartup @@ -1086,7 +1086,7 @@ QUICK HELP *netrw-quickhelp* {{{2 P 直前に使用していたウィンドウで開く |netrw-P| qb ブックマークと履歴の一覧を表示する |netrw-qb| qf ファイル情報を表示する |netrw-qf| - qF QUICKFIX リストを使ってファイルをマークする |netrw-qF| + qF QuickFix リストを使ってファイルをマークする |netrw-qF| r ソート順を逆にする |netrw-r| R ファイル/ディレクトリ(複数可)の名前を変える |netrw-R| s ソート方法を変える: name, time, file size |netrw-s| @@ -1171,9 +1171,8 @@ QUICK HELP *netrw-quickhelp* {{{2 :NetrwMB コマンドはnetrw バッファの外でも使用可能です (一度でも netrwがそのセッション中で起動されていれば)。 -".netrwbook" ファイルはnetrw(とvim)が起動されていない間 -ブックマークを保持します。 -デフォルトでは |'runtimepath'|の最初のディレクトリに保存されます。 +".netrwbook" ファイルはnetrw(とvim)が起動されていない間ブックマークを +保持します。デフォルトでは |'runtimepath'|の最初のディレクトリに保存されます。 関連項目: |netrw-gb| ブックマークに戻る (移動する) @@ -1382,7 +1381,7 @@ Note: |netrw-qb| はブックマークと履歴を両方表示します。履歴 netrw(とvim)が起動されていない間、履歴を保持します。 デフォルトでは |'runtimepath'|の最初のディレクトリに保存されます。 -Related Topics: +関連項目: |netrw-U| 次のディレクトリに進む |g:netrw_home| .netrwhist が保存される場所を制御します @@ -1409,7 +1408,7 @@ Related Topics: る)。 "dirname" を指定した場合、指定された名前が使われます。 -"gn"マップはカーソル位置の単語を取得し、ツリーのトップをそれに変更します。 +"gn" マップはカーソル位置の単語を取得し、ツリーのトップをそれに変更します。 NETRW CLEAN *netrw-clean* *:NetrwClean* {{{2 @@ -1458,15 +1457,14 @@ Netrw は次の方法で専用ハンドラを決定します: れます。例えば OpenOffice (*.sfx)、画像表示 (*.jpg, *.gif, etc)、PostScript (*.ps, *.eps) などに対応可能です。 -gx マッピングはすべてのバッファを拡張します。 - -The gx mapping extends to all buffers; apply "gx" while atop a word and netrw -will apply a special handler to it (like "x" works when in a netrw buffer). -One may also use visual mode (see |visual-start|) to select the text that the -special handler will use. Normally gx uses expand("") to pick up the -text under the cursor; one may change what |expand()| uses via the -|g:netrw_gx| variable. Alternatively, one may select the text to be used by -gx via first making a visual selection (see |visual-block|). +gx マッピングはすべてのバッファに適用できます。 +カーソル位置の単語に "gx" を適用すると、それに対し netrw は特別な処置を +行います (ちょうど "x" が netrw バッファに対して行うように)。 +特別な処置を行うテキストをビジュアルモード (|visual-start| 参照) +により選択することもできます。通常 gx はカーソル位置のテキストを取得するのに +expand("") を使用しますが、|g:netrw_gx| 変数で |expand()| が使用する +引数を変えることができます。また、代わりに gx で使用するテキストを最初に +ビジュアル選択を行っておくことで選択することもできます (|visual-block| 参照)。 関連設定: |g:netrw_gx| gx がどのようにカーソル位置のテキストを取得するか @@ -1521,7 +1519,7 @@ vimの関数で処理しようと試みます。 "x" マップはファイルの もしマークされたファイルが存在するなら、mB はそれらを ブックマークリストから削除します。 -一方で :NetrwMB! を使う人もいるだろう (|netrw-:NetrwMB|参照)。 +一方で :NetrwMB! を使う人もいるでしょう (|netrw-:NetrwMB|参照)。 > :NetrwMB! [files/directories] @@ -1662,7 +1660,7 @@ g:netrw_rmdir_cmd によるディレクトリの削除が失敗した場合は ウィンドウを開いてからでないと使えません。 エクスプローラーに戻る~ - ユーザーがnetrwを使用してファイルを編集する時、例えば + netrw を使用してファイルを編集する時、例えば カーソル位置がnetrw ブラウザーウィンドウ内のファイル名にある時に を押すと、 :Rexplore が実行されます。これによりそのウィンドウ での最後のnetrw ブラウザーの表示に戻ることができます。 @@ -2122,7 +2120,7 @@ regexp: " というプロンプトが表示されるので、例えば *.c$ の (マークの設定方法は |netrw-mf| と |netrw-mr| を参照) (ローカルマークファイルリスト使用) -"mv"マップはローカルマークファイルリストのファイルに対して +"mv" マップはローカルマークファイルリストのファイルに対して netrw にそれぞれ任意のvimコマンドを実行させます: * 1split @@ -2130,8 +2128,8 @@ netrw にそれぞれ任意のvimコマンドを実行させます: * run vim command * sil! keepalt wq! -"Enter vim command: " というプロンプトが出て実行するvimコマンドが -訊かれます。 +あなたが実行したいvimコマンドを尋ねるため "Enter vim command: " という +プロンプトが出ます。 マークファイル: 任意のシェルコマンド *netrw-mx* {{{2 @@ -2158,9 +2156,9 @@ netrw にそれぞれ任意のvimコマンドを実行させます: (マークの設定方法は |netrw-mf| と |netrw-mr| を参照) (グローバルマークファイルリスト使用) -'mX'マップの実行の際、netrw はユーザーにグローバルマークファイルリストに +'mX' マップの実行の際、netrw はユーザーにグローバルマークファイルリストに 対して適用する外部コマンドを尋ねます。 "一括" の意味するものは、 -一つのコマンドがすべてのファイルに対して一度に実行されるからです: +一つのコマンドがすべてのファイルに対して一度に実行されるからです: > command files @@ -2170,7 +2168,7 @@ netrw にそれぞれ任意のvimコマンドを実行させます: mX コマンドを入力する: tar cf mynewtarball.tar < -この例により実行されるコマンド: +この例により実行されるコマンド: > tar cf mynewtarball.tar 'file1' 'file2' ... @@ -2730,7 +2728,7 @@ netrw ブラウザの各種設定は変数で管理されていて、それを *g:netrw_servername* |netrw-ctrl-r| で使うサーバー名 デフォルト: "NETRWSERVER" - *g:netrw_sort_by* ソートの項目: "name", "time", "size", "exten" + *g:netrw_sort_by* ソートの種類: "name", "time", "size", "exten" 初期設定: "name" *g:netrw_sort_direction* ソートの順序: "normal" or "reverse" @@ -3007,8 +3005,9 @@ netrw を次のように設定すると便利かもしれません: > マークされたファイルを移動 (名前変更) します。プロンプトが表示されるので ファイル/ディレクトリの移動先を入力してください。 - もしあなたが s/frompattern/topattern/ と入力したら、マークファイルリスト - のそれぞれのファイル名を取得し、置換を適用し、ファイル名を変更します。 + もしあなたが "s/frompattern/topattern/" と入力したら、 + マークファイルリストのそれぞれのファイル名を取得し、置換を適用し、 + ファイル名を変更します。 例: > mr [質問: *.c と入力] @@ -3042,9 +3041,9 @@ V (|linewise-visual|) で選択することで複数のファイル/ディレク ソートの種類を変更する *netrw-s* *netrw-sort* {{{2 -ファイル一覧は名前、時間、ファイルサイズのいずれかでソートできます。"s" マップ -を使うことでソートの種類を順番に切り替えることができます。ファイルの一覧は自動 -的に更新されます。 +ファイル一覧は名前、時間、ファイルサイズのいずれかでソートできます。 +"s" マップを使うことでソートの種類を順番に切り替えることができます。 +ファイルの一覧は自動的に更新されます。 関連項目: |netrw-r| |netrw-S| 関連設定: |g:netrw_sort_by| |g:netrw_sort_sequence| @@ -3094,7 +3093,7 @@ netrw ウィンドウ/エクスプローラーウインドウを拡大・縮小 もし |g:netrw_usetab| が存在し 非0 の場合、もしくはすでに にマッピング が存在するなら、 はマッピングされません。 もし 以外にマップ されていた場合も同様です: (しかしその場合も g:netrw_usetab をセットしている -必要があります) +必要があります) > nmap (whatever) NetrwShrink < @@ -3104,7 +3103,7 @@ netrw ウィンドウ/エクスプローラーウインドウを拡大・縮小 ユーザー定義のマッピング *netrw-usermaps* {{{1 -ユーザーはユーザー定義のマップを作成することができます。 +ユーザー定義のマップを作成することができます。 キーマップの文字列と関数名の |List| を保持する|g:Netrw_UserMaps| を 指定してください: > @@ -3460,11 +3459,11 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で 私は両方のバッファが存在していて欲しいけど、 実際は最後のバッファだけが残る。 - (Lance) .vimrc に書かれた "set autochdir" が原因だ。 - (drchip) |'acd'| オプションをセットすると再現できた。 - バッファが正しく閉じられていないように見える。 - ":ls!" すると閉じられていないバッファが表示される - (":ls" では表示されない)。 + (Lance) .vimrc に書かれた "set autochdir" が原因です。 + (drchip) |'acd'| オプションをセットすると再現できました。 + バッファが正しく閉じられていないように見えます。 + ":ls!" するとそれらの閉じられていないバッファが + 表示されます (":ls" では表示されません)。 *netrw-P18* P18. ssh でのみ到達可能なサーバー上のファイルを @@ -3477,24 +3476,24 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で P19. ディレクトリのファイル一覧表示の際に行番号を表示するには どうしたらいいの? |g:netrw_bufsettings| によって netrw バッファの設定を - 制御できる。次を .vimrc に書いてみて欲しい。 > + 制御できる。次を .vimrc に書いてみてください。 > let g:netrw_bufsettings="noma nomod nu nobl nowrap ro nornu" -< もし相対的な行番号を表示したかったら代わりにこれを - 試して欲しい。 > +< もし相対的な行番号を表示したかったら、代わりにこれを + 試してください。 > let g:netrw_bufsettings="noma nomod nonu nobl nowrap ro rnu" < *netrw-P20* P20. ディレクトリのファイル一覧を表示して gvim を起動できますか? - 次のコードを .vimrc に書いてみて欲しい: > + 次のコードを .vimrc に書いてみてください: > augroup VimStartup au! au VimEnter * if expand("%") == "" && argc() == 0 && \ (v:servername =~ 'GVIM\d*' || v:servername == "") \ | e . | endif augroup END -< その気があれば "e" の代わりに Lexplore を使うこともできる。 - このコードは client-server を有効化しているのを仮定している - (例えば "huge" バージョンのvim)。 +< その気があれば "e" の代わりに Lexplore を使うこともできます。 + このコードは client-server が有効化されているのを + 仮定しています (例えば "huge" バージョンのvim)。 *netrw-P21* P21. アクセント記号付き文字を含んだディレクトリ (またはファイル) @@ -3504,8 +3503,8 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で おそらくあなたのシェルかo/sが、あなたのvimが使っている エンコーディングと異なるエンコーディングを使っていることが 原因ではないでしょうか。 将来 vim に "systemencoding" を - サポートさせるパッチがこれを解決してくれるのではないで - しょうか。今は netrw に適切なエンコーディングを使わせて + サポートさせるパッチがこれを解決してくれると思われます。 + 今は netrw に適切なエンコーディングを使わせるようにして ください。例えば: > au FileType netrw set enc=latin1 @@ -3519,21 +3518,22 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で Netrw はコピーや移動を行うためにいくつかのシステム用コマンドを 持っています (次を参照 + |g:netrw_localcopycmd|, |g:netrw_localmovecmd|, |g:netrw_localrmdir|, |g:netrw_mkdir_cmd|)。 もしかしたら .vimrc でそれらを適切に設定して、 デフォルトのコマンドを1つかそれ以上調整する必要が - あるかもしれません。また違う面で難しいのは + あるかもしれません。また他の難しい側面として、 これらのコマンドは vim のローカルディレクトリを使用します。 - それは netrw でブラウズしているディレクトリとは同じでは + それは netrw でブラウズしているディレクトリと同じでは ないかもしれません (|g:netrw_keepdir| 参照)。 ============================================================================== 11. Netrw をデバッグする *netrw-debug* {{{1 -ステップ1: あなたが出くわした問題が以下の netrw の最新版(開発版)のコピーを +ステップ1: あなたが直面した問題が以下の netrw の最新版(開発版)のコピーを 取得することで解決するか確認してください: http://www.drchip.org/astronaut/vim/index.html#NETRW @@ -3543,7 +3543,7 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で /usr/local/share/vim/vim7x/plugin/netrwPlugin.vim /usr/local/share/vim/vim7x/autoload/netrw.vim < -これらは起動時に自動的に読み込まれます (:set nocp されている場合)。 +これらは起動時に自動的に読み込まれます (:set nocp を想定)。 新しい netrw を次の場所にインストールしてください。 > $HOME/.vim/plugin/netrwPlugin.vim From 497c74d9a66f50c6c552dee29b9150f25a78f60b Mon Sep 17 00:00:00 2001 From: tyru Date: Thu, 11 Feb 2016 01:36:48 +0900 Subject: [PATCH 5/6] Translate pi_netrw.jax 1. Use terms of respect checking my commits again 2. In TOC or related topics and so on, terms of respect are not used --- doc/pi_netrw.jax | 80 +++++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/doc/pi_netrw.jax b/doc/pi_netrw.jax index 688f7b9fe..e5a3adcf4 100644 --- a/doc/pi_netrw.jax +++ b/doc/pi_netrw.jax @@ -366,7 +366,7 @@ Netrw にはたくさんの変数が用意されていて、好きなように < *g:Netrw_UserMaps* ユーザ定義のマッピングや設定を行う - 関数か関数のリスト(|List|)を指定する。 + 関数か関数のリスト(|List|)を指定します。 |netrw-usermaps| 参照。 *g:netrw_ftp* 変数が存在しない場合はデフォルト ftp 使用 @@ -1171,14 +1171,14 @@ QUICK HELP *netrw-quickhelp* {{{2 :NetrwMB コマンドはnetrw バッファの外でも使用可能です (一度でも netrwがそのセッション中で起動されていれば)。 -".netrwbook" ファイルはnetrw(とvim)が起動されていない間ブックマークを +".netrwbook" ファイルは netrw (とvim) が起動されていない間ブックマークを 保持します。デフォルトでは |'runtimepath'|の最初のディレクトリに保存されます。 関連項目: |netrw-gb| ブックマークに戻る (移動する) |netrw-mB| ブックマークを削除する |netrw-qb| ブックマークを一覧表示する - |g:netrw_home| .netrwbook が保存される場所を制御します + |g:netrw_home| .netrwbook が保存される場所を制御する ブラウジング *netrw-cr* {{{2 @@ -1293,8 +1293,8 @@ netrw ブラウザの (ディレクトリではなく) ファイルの上でがどのようにファイルを開くのか制御します + |g:netrw_servername| : サーバー名をセットする + |g:netrw_browse_split| : がどのようにファイルを開くのか制御する 一覧表示スタイル変更 (THIN LONG WIDE TREE) *netrw-i* {{{2 @@ -1383,7 +1383,7 @@ netrw(とvim)が起動されていない間、履歴を保持します。 関連項目: |netrw-U| 次のディレクトリに進む - |g:netrw_home| .netrwhist が保存される場所を制御します + |g:netrw_home| .netrwhist が保存される場所を制御する 次のディレクトリに進む *netrw-U* *netrw-downdir* {{{2 @@ -1468,8 +1468,8 @@ expand("") を使用しますが、|g:netrw_gx| 変数で |expand()| が 関連設定: |g:netrw_gx| gx がどのようにカーソル位置のテキストを取得するか - 制御します - |g:netrw_nogx| 編集中 gx マップを無効にします + 制御する + |g:netrw_nogx| 編集中 gx マップを無効にする *netrw_filehandler* @@ -1618,15 +1618,16 @@ g:netrw_rmdir_cmd によるディレクトリの削除が失敗した場合は [N] は新しい :Lexplore ウィンドウの |g:netrw_winsize| を示します。 - この方法を好む人達はよくツリービューも好みます。 + この方法を好む人達はしばしばツリービューも好むでしょう。 |g:netrw_liststyle|参照。 以下も参照: |netrw-C| |g:netrw_browse_split| |g:netrw_wiw| |netrw-p| |netrw-P| |g:netrw_chgwin| |netrw-c-tab| |g:netrw_winsize| -:[N]Lexplore! は :Lexplore と似ているが、縦一杯のエクスプローラーウィンドウ - を左側に開く。その際、未定義の |g:netrw_chgwin| は1にセットされる。 +:[N]Lexplore! は :Lexplore と似ていますが、縦一杯のエクスプローラーウィンドウ + を左側に開きます。その際、未定義の |g:netrw_chgwin| は1にセット + されます。 *netrw-:Sexplore* :[N]Sexplore は、常に新しいウィンドウを作成してローカルディレクトリブラウザを @@ -2039,8 +2040,8 @@ netrw はファイルをマークする方法をいくつか提供していま |netrw-a| ファイル/ディレクトリを隠す |netrw-D| ファイル/ディレクトリを削除する - |netrw-mb| マークされたファイルをブックマークに追加します - |netrw-mB| マークされたファイルをブックマークから削除します + |netrw-mb| マークされたファイルをブックマークに追加する + |netrw-mB| マークされたファイルをブックマークから削除する |netrw-mc| ファイルをターゲットディレクトリにコピーする |netrw-md| マークしたファイルに vimdiff を適用する |netrw-me| マークしたファイルを開く @@ -2128,8 +2129,8 @@ netrw にそれぞれ任意のvimコマンドを実行させます: * run vim command * sil! keepalt wq! -あなたが実行したいvimコマンドを尋ねるため "Enter vim command: " という -プロンプトが出ます。 +あなたが実行したいvimコマンドを尋ねるため +"Enter vim command: " というプロンプトが出ます。 マークファイル: 任意のシェルコマンド *netrw-mx* {{{2 @@ -2158,7 +2159,7 @@ netrw にそれぞれ任意のvimコマンドを実行させます: 'mX' マップの実行の際、netrw はユーザーにグローバルマークファイルリストに 対して適用する外部コマンドを尋ねます。 "一括" の意味するものは、 -一つのコマンドがすべてのファイルに対して一度に実行されるからです: > +一つのコマンドがすべてのファイルに対して一度に実行されるためです: > command files @@ -2392,9 +2393,9 @@ netrw によって url が開かれ、タグに移動できます。 (|netrw-mf| と |netrw-mr| を参照) "mu" マップを使うと現在設定されているすべてのマークが解除されます。 -このコマンドは "mF" とは異なる。"mu" はすべてのグローバルマークファイル -リストとバッファローカルマークファイルリストを解除するのに対し、 -"mF" はカレントディレクトリのファイルの選択のみを解除する (|netrw-mF|参照)。 +このコマンドは "mF" とは異なります。"mu" はすべてのグローバルマークファイル +リストとバッファローカルマークファイルリストを解除するのに対し、"mF" は +カレントディレクトリのファイルの選択のみを解除します (|netrw-mF|参照)。 *netrw-browser-settings* @@ -2442,11 +2443,11 @@ netrw ブラウザの各種設定は変数で管理されていて、それを =[サーバー名,タブ番号,ウィンドウ番号] このような |List| を指定すると、 "サーバー名" で指定したリモートサーバーは - 編集に使われる。また、指定されたタブと - ウィンドウも使われる (|clientserver|, + 編集に使われます。また、指定されたタブと + ウィンドウも使われます (|clientserver|, |netrw-ctrl-r|参照)。 このオプションは |:Lexplore| のウィンドウには - 影響を与えない。 + 影響を与えません。 関連項目: |g:netrw_alto| |g:netrw_altv| @@ -2586,8 +2587,8 @@ netrw ブラウザの各種設定は変数で管理されていて、それを *g:netrw_gx* ="" このオプションは gx (|netrw-gx|)がどのように カーソル位置のテキストを取得するかを制御 - します。その機能については |expand()| を - 参照してください。 + します。可能な引数については |expand()| + を参照してください。 *g:netrw_hide* "a" マップを制御する (|netrw-a| 参照) =0 : すべて表示 @@ -2606,8 +2607,8 @@ netrw ブラウザの各種設定は変数で管理されていて、それを 現在のブラウジングディレクトリはb:netrw_curdir に保存されます。 (|netrw-c| 参照) - *g:netrw_keepj* ="keepj" (デフォルト) netrw は |:jumps| の表を - 保つよう試みます。 + *g:netrw_keepj* ="keepj" (デフォルト) netrw は |:jumps| の + エントリを保つよう試みます。 ="" netrw は保存/位置の復元以外に |:keepjumps|を使わなくなります。 @@ -2834,9 +2835,9 @@ netrw ブラウザの各種設定は変数で管理されていて、それを す。 g:netrw_winsize が 0 より小さい場合、新しい ウィンドウの行または列の大きさにはその値の絶対 - 値が使われます。 + 値が使われる。 g:netrw_winsize がゼロなら、通常どおりウィン - ドウが分割されます (つまり、例えば + ドウが分割される (つまり、例えば |'equalalways'| が機能するなど)。 初期設定: 50 (50%) @@ -2947,9 +2948,9 @@ netrw を次のように設定すると便利かもしれません: > 示ウィンドウは列の幅の 30% しか使わないので、残りの領域をプレビュー ウィンドウの表示に使用できる。 - 関連: もしあなたがこのアイデアを気に入ったなら、 + 関連: もしあなたがこのアイデアを気に入るようなら、 :Lexplore (|netrw-:Lexplore|) や |g:netrw_chgwin| にも - 興味を持つだろう。 + 興味を持つでしょう。 参照: |g:netrw_chgwin| |netrw-P| |'previewwindow'| @@ -3015,7 +3016,7 @@ netrw を次のように設定すると便利かもしれません: > < この例ではすべての *.c ファイルを *.cpp に変更します。 - ctrl-Xはファイルをリネームするのに特別な意味を持つ: > + ctrl-Xはファイルをリネームするのに特別な意味を持ちます: > : 単一の ctrl-x は netrw に最後の '/' と ctrl-x の間の分割の位置を伝えます。 @@ -3454,10 +3455,10 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で 1. :Explore する、ディレクトリを歩く、ファイルを開く 2. :Explore する、別のファイルを開く 3. ステップ1で開いたバッファが閉じる - 期待される出力は何ですか? - あなたの環境では何が表示されますか? + 上記であなたが期待している出力は何でしょうか? + また、あなたの環境では何が表示されますか? 私は両方のバッファが存在していて欲しいけど、 - 実際は最後のバッファだけが残る。 + 実際は最後のバッファだけが残ります。 (Lance) .vimrc に書かれた "set autochdir" が原因です。 (drchip) |'acd'| オプションをセットすると再現できました。 @@ -3468,7 +3469,8 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で *netrw-P18* P18. ssh でのみ到達可能なサーバー上のファイルを ローカルで編集するにはどうしたらいいの? - http://stackoverflow.com/questions/12469645/ 参照。 + 以下を参照してください。 + http://stackoverflow.com/questions/12469645/ "Using Vim to Remotely Edit A File on ServerB Only Accessible From ServerA" @@ -3476,7 +3478,7 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で P19. ディレクトリのファイル一覧表示の際に行番号を表示するには どうしたらいいの? |g:netrw_bufsettings| によって netrw バッファの設定を - 制御できる。次を .vimrc に書いてみてください。 > + 制御できます。以下を .vimrc に書いてみてください。 > let g:netrw_bufsettings="noma nomod nu nobl nowrap ro nornu" < もし相対的な行番号を表示したかったら、代わりにこれを 試してください。 > @@ -3491,7 +3493,7 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で \ (v:servername =~ 'GVIM\d*' || v:servername == "") \ | e . | endif augroup END -< その気があれば "e" の代わりに Lexplore を使うこともできます。 +< もしよければ "e" の代わりに Lexplore を使うこともできます。 このコードは client-server が有効化されているのを 仮定しています (例えば "huge" バージョンのvim)。 @@ -3524,7 +3526,7 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で もしかしたら .vimrc でそれらを適切に設定して、 デフォルトのコマンドを1つかそれ以上調整する必要が - あるかもしれません。また他の難しい側面として、 + あるかもしれません。またその他に問題を難しくしている原因として これらのコマンドは vim のローカルディレクトリを使用します。 それは netrw でブラウズしているディレクトリと同じでは ないかもしれません (|g:netrw_keepdir| 参照)。 @@ -3571,7 +3573,7 @@ netrw#Call("funcname"[,args]) netrw の内部関数を指定の引数で 1. スクリプトを入手してください: http://www.drchip.org/astronaut/vim/index.html#DECHO - または + or http://vim.sourceforge.net/scripts/script.php?script_id=120 Decho.vim は "vimball" の形で提供されています。|vimball-intro|参照。 From 5f48d8ded25c62164633ede9419253d359db6c19 Mon Sep 17 00:00:00 2001 From: tyru Date: Fri, 12 Feb 2016 01:02:41 +0900 Subject: [PATCH 6/6] Fix for responding to @koron's review (Thanks!) --- doc/pi_netrw.jax | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/doc/pi_netrw.jax b/doc/pi_netrw.jax index e5a3adcf4..b921abd47 100644 --- a/doc/pi_netrw.jax +++ b/doc/pi_netrw.jax @@ -407,7 +407,7 @@ Netrw にはたくさんの変数が用意されていて、好きなように *g:netrw_preview* =0 (初期設定) プレビューウィンドウを水平分割で表示する =1 プレビューウィンドウを垂直分割で表示する。 "直前のウィンドウ" (|netrw-P|参照) にも作用します。 - さらに|g:netrw_alto|変数は分割の方向を制御し + |g:netrw_alto| 変数を使えば、もっと詳細に分割を制御でき ます。 g:netrw_preview g:netrw_alto 結果 0 0 |:aboveleft| @@ -1153,18 +1153,15 @@ QUICK HELP *netrw-quickhelp* {{{2 :NetrwMB[!] [files/directories] -