Skip to content

Commit b3a601a

Browse files
authored
Merge pull request #183 from uakms/catch-up-editing
原文の変更に追随 (editing)
2 parents cdb66a5 + 830d5a5 commit b3a601a

File tree

2 files changed

+43
-22
lines changed

2 files changed

+43
-22
lines changed

doc/editing.jax

+22-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim バージョン 8.0. Last change: 2016 Nov 24
1+
*editing.txt* For Vim バージョン 8.0. Last change: 2017 Aug 21
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -607,17 +607,18 @@ Vim の開始時に複数のファイル名を与えると、それらは引数
607607
|++opt||+cmd| も参照。
608608
{Vi: ++opt はない}
609609

610-
:[count]arge[dit][!] [++opt] [+cmd] {name} *:arge* *:argedit*
610+
:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
611611
引数リストに {name} を追加し、その編集を始める。
612612
{name} が既に引数リスト内にあるときは、その編集を始め
613613
る。
614614
これはコマンド |:argadd| を使い、次に |:edit| を使うの
615615
と同じである。
616-
Note 指定できるファイルは1個であり、|:edit| と同様ファ
617-
イル名の中に空白が使えることに注意。[count]
618-
|:argadd| と同様に使われる。
619-
カレントファイルが放棄 |abandon| できないときは '!' が
620-
必要になる。
616+
ファイル名中のスペースは "\" でエスケープされなければ
617+
ならない。
618+
[count]|:argadd| と同様に使われる。
619+
もしもカレントファイルが放棄 |abandon| することができ
620+
ないなら、編集されていないことを除いて、引数リストに
621+
{name} が加えられる。重複のチェックは行われない。
621622
|++opt||+cmd| も参照。
622623
{Vi にはない}
623624

@@ -1100,6 +1101,7 @@ MS-DOSとMS-Windowsでは、デバイスは名前から判断される:
11001101
後のウィンドウを閉じるとカレントタブページが閉じられる。
11011102
|tab-page|
11021103
|QuitPre| オートコマンドイベントが発行される。
1104+
他のウィンドウを終了するには |CTRL-W_q| を参照。
11031105

11041106
:conf[irm] q[uit] 終了だが、変更点があるときや、引数リスト内で末尾にない
11051107
ファイルを編集しているときにはプロンプトを表示する。
@@ -1313,9 +1315,11 @@ has("browsefilter") が使える: >
13131315
:chd[ir][!] [path] コマンド |:cd| と同じ。
13141316

13151317
*:lc* *:lcd*
1316-
:lc[d][!] {path} コマンド |:cd| と似ているが、カレントウィンドウのカレ
1317-
ントディレクトリのみを変更する。別のウィンドウのカレン
1318-
トディレクトリに変化はない。 {Vi にはない}
1318+
:lc[d][!] {path} コマンド |:cd| と似ているが、カーソルがカレントウィン
1319+
ドウにある時にカレントディレクトリのみを変更する。別の
1320+
ウィンドウのカレントディレクトリは変更されず、別のウィ
1321+
ンドウへの移動すると {path} の使用を止める。
1322+
{Vi にはない}
13191323

13201324
*:lch* *:lchdir*
13211325
:lch[dir][!] |:lcd| と同じ。 {Vi にはない}
@@ -1538,6 +1542,13 @@ Vimは編集を始めたときのファイルの修正タイムスタンプと
15381542
'autoread' をオンにすること。しかしこれはファイルを書き込んだ時点では機能し
15391543
ない。ファイルがVim内部で変更されていないときだけだ。
15401544

1545+
もしも質問されたくなかったり、ファイルを自動的に再読み込みをしたいのなら、次の
1546+
設定を使うことができる: >
1547+
set buftype=nofile
1548+
1549+
もしくは、シェルから gvim を起動する時に >
1550+
gvim file.log -c "set buftype=nofile"
1551+
15411552
Note イベント |FileChangedShell| に自動コマンドが定義されていると、警告メッセー
15421553
ジやプロンプトは表示されない。その自動コマンドが対処するものとされている。
15431554

@@ -1700,7 +1711,7 @@ Win32 でサマータイムが始まる日である。Win32 ライブラリに
17001711
/u/user_x/** ~
17011712
となり、同じディレクトリだが順番が違う。
17021713

1703-
Note: 現在 ":find"、":sfind"、":tabfind" コマンドは、'path' アイテムに url
1714+
Note: 現在 ":find"、":sfind"、":tabfind" コマンドは、'path' アイテムに URL
17041715
や深さ制限付きのダブルスター (/usr/**2) や 上方検索 (;) などが含まれている
17051716
と機能しない。
17061717
>

en/editing.txt

+21-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 8.0. Last change: 2016 Nov 24
1+
*editing.txt* For Vim version 8.0. Last change: 2017 Aug 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -617,16 +617,16 @@ list of the current window.
617617
Also see |++opt| and |+cmd|.
618618
{Vi: no ++opt}
619619

620-
:[count]arge[dit][!] [++opt] [+cmd] {name} *:arge* *:argedit*
621-
Add {name} to the argument list and edit it.
620+
:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
621+
Add {name}s to the argument list and edit it.
622622
When {name} already exists in the argument list, this
623623
entry is edited.
624624
This is like using |:argadd| and then |:edit|.
625-
Note that only one file name is allowed, and spaces
626-
inside the file name are allowed, like with |:edit|.
625+
Spaces in filenames have to be escaped with "\".
627626
[count] is used like with |:argadd|.
628-
[!] is required if the current file cannot be
629-
|abandon|ed.
627+
If the current file cannot be |abandon|ed {name}s will
628+
still be added to the argument list, but won't be
629+
edited. No check for duplicates is done.
630630
Also see |++opt| and |+cmd|.
631631
{not in Vi}
632632

@@ -1109,6 +1109,7 @@ The names can be in upper- or lowercase.
11091109
window in the current tab page the current tab page is
11101110
closed |tab-page|.
11111111
Triggers the |QuitPre| autocommand event.
1112+
See |CTRL-W_q| for quitting another window.
11121113

11131114
:conf[irm] q[uit] Quit, but give prompt when changes have been made, or
11141115
the last file in the argument list has not been
@@ -1328,9 +1329,11 @@ present in 'cpoptions' and "!" is not used in the command.
13281329
:chd[ir][!] [path] Same as |:cd|.
13291330

13301331
*:lc* *:lcd*
1331-
:lc[d][!] {path} Like |:cd|, but only set the current directory for the
1332-
current window. The current directory for other
1333-
windows is not changed. {not in Vi}
1332+
:lc[d][!] {path} Like |:cd|, but only set the current directory when
1333+
the cursor is in the current window. The current
1334+
directory for other windows is not changed, switching
1335+
to another window will stop using {path}.
1336+
{not in Vi}
13341337

13351338
*:lch* *:lchdir*
13361339
:lch[dir][!] Same as |:lcd|. {not in Vi}
@@ -1558,6 +1561,13 @@ If you want to automatically reload a file when it has been changed outside of
15581561
Vim, set the 'autoread' option. This doesn't work at the moment you write the
15591562
file though, only when the file wasn't changed inside of Vim.
15601563

1564+
If you do not want to be asked or automatically reload the file, you can use
1565+
this: >
1566+
set buftype=nofile
1567+
1568+
Or, when starting gvim from a shell: >
1569+
gvim file.log -c "set buftype=nofile"
1570+
15611571
Note that if a FileChangedShell autocommand is defined you will not get a
15621572
warning message or prompt. The autocommand is expected to handle this.
15631573

@@ -1728,7 +1738,7 @@ There are three different types of searching:
17281738
This searches the same directories, but in a different order.
17291739

17301740
Note that completion for ":find", ":sfind", and ":tabfind" commands do not
1731-
currently work with 'path' items that contain a url or use the double star
1741+
currently work with 'path' items that contain a URL or use the double star
17321742
with depth limiter (/usr/**2) or upward search (;) notations.
17331743

17341744
vim:tw=78:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)