Skip to content

原文の変更に追随 (editing) #183

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 2 commits into from
Sep 17, 2017
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
33 changes: 22 additions & 11 deletions doc/editing.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim バージョン 8.0. Last change: 2016 Nov 24
*editing.txt* For Vim バージョン 8.0. Last change: 2017 Aug 21


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

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

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

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

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

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

もしも質問されたくなかったり、ファイルを自動的に再読み込みをしたいのなら、次の
設定を使うことができる: >
set buftype=nofile

もしくは、シェルから gvim を起動する時に >
gvim file.log -c "set buftype=nofile"

Note イベント |FileChangedShell| に自動コマンドが定義されていると、警告メッセー
ジやプロンプトは表示されない。その自動コマンドが対処するものとされている。

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

Note: 現在 ":find"、":sfind"、":tabfind" コマンドは、'path' アイテムに url
Note: 現在 ":find"、":sfind"、":tabfind" コマンドは、'path' アイテムに URL
や深さ制限付きのダブルスター (/usr/**2) や 上方検索 (;) などが含まれている
と機能しない。
>
Expand Down
32 changes: 21 additions & 11 deletions en/editing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim version 8.0. Last change: 2016 Nov 24
*editing.txt* For Vim version 8.0. Last change: 2017 Aug 21


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

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

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

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

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

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

If you do not want to be asked or automatically reload the file, you can use
this: >
set buftype=nofile

Or, when starting gvim from a shell: >
gvim file.log -c "set buftype=nofile"

Note that if a FileChangedShell autocommand is defined you will not get a
warning message or prompt. The autocommand is expected to handle this.

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

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

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