Skip to content

Commit fbf4c0f

Browse files
authored
Merge pull request #213 from t-mochizuki/update_windows_8.1.0026
Update windows from 8.0 to 8.1
2 parents 1f3c533 + 0bd90a4 commit fbf4c0f

File tree

2 files changed

+75
-49
lines changed

2 files changed

+75
-49
lines changed

doc/windows.jax

+38-26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim バージョン 8.0. Last change: 2016 Dec 01
1+
*windows.txt* For Vim バージョン 8.1. Last change: 2018 Apr 24
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -235,6 +235,11 @@ CTRL-W ^ ":split #" と同じ。つまり、ウィンドウを2つに分割し
235235
ファイルを編集する。カウントが指定された場合は ":split #N" と
236236
同じ。つまり、ウィンドウを分割してバッファNを編集する。
237237

238+
*CTRL-W_:*
239+
CTRL-W : |:| と同じ。: コマンドラインを編集する。
240+
すべてのVimコマンドが CTRL-W または 'termkey' から始められなけ
241+
ればならない端末ウィンドウの中で役に立つ。
242+
238243
オプション 'splitbelow''splitright' が新しいウィンドウが現れる場所に影響を
239244
及ぼすことに注意。
240245

@@ -353,9 +358,9 @@ CTRL-W CTRL-C *CTRL-W_CTRL-C*
353358
*:hide*
354359
:hid[e]
355360
:{count}hid[e]
356-
カレントウィンドウがスクリーン上の最後のウィンドウでなければ、
357-
カレントウィンドウを終了する。 {count} については |:quit| コマ
358-
ンドを参照
361+
{count} なし: カレントウィンドウがスクリーン上の最後のウィンド
362+
ウでなければ、カレントウィンドウを終了する。
363+
もし {count} が与えられた場合、{count} ウィンドウを終了する
359364

360365
(他のウィンドウがバッファを編集していなく、かつ 'bufhidden'
361366
値が "unload", "delete", "wipe" のいずれでもないならば)その
@@ -634,7 +639,8 @@ CTRL-W | カレントウィンドウの幅を N桁にする (デフォルト:可
634639
41. :buffers バッファの表示
635640

636641
[N] の意味はコマンドによって異なる。
637-
?2、?3、?4のコマンドにおいては、[N]は前方/後方に移動するバッファ数
642+
2/12/22/32、3/13/23/33、4/14/24/34のコマンドにおいては、[N]は前方/後方に移動
643+
するバッファ数
638644
1、21のコマンドにおいては、[N]は引数番号、デフォルトはカレント引数
639645
11、31のコマンドにおいては、[N]はバッファ番号、デフォルトはカレントバッファ
640646
19、39のコマンドにおいては、[N]はカウント
@@ -729,7 +735,6 @@ Note: ":next" は例外である。なぜならこのコマンドは Vi との
729735
ページで開かれる。最後のウィンドウが空ならそのウィンドウが使わ
730736
れる。
731737
|++opt||+cmd| も参照。
732-
{GUI 機能つきでコンパイルされたときのみ使用可能}
733738

734739
==============================================================================
735740
8. 全てのバッファ/ウィンドウに対してコマンド実行 *list-repeat*
@@ -750,8 +755,7 @@ Note: ":next" は例外である。なぜならこのコマンドは Vi との
750755
{cmd} は '|' を含んで複数のコマンドを連結していてもよ
751756
い。
752757
{cmd} はウィンドウの開閉、並べ替えをしてはならない。
753-
{Vi にはない} {|+listcmds| 機能なしでコンパイルされた場
754-
合は使用できない}
758+
{Vi にはない}
755759
|:tabdo||:argdo||:bufdo||:cdo||:ldo||:cfdo|
756760
|:lfdo|も参照。
757761

@@ -779,8 +783,7 @@ Note: ":next" は例外である。なぜならこのコマンドは Vi との
779783
Note:このコマンドを実行している間、Syntax 自動コマンド
780784
イベントが 'eventignore' に追加され、無効化される。
781785
これは各バッファの編集を大幅にスピードアップさせる。
782-
{Vi にはない} {|+listcmds| 機能なしでコンパイルされた
783-
場合は使用できない}
786+
{Vi にはない}
784787
|:tabdo||:argdo||:windo||:cdo||:ldo||:cfdo|
785788
|:lfdo| も参照。
786789

@@ -994,7 +997,6 @@ CTRL-W g } *CTRL-W_g}*
994997
ている。これにより、毎回ファイルを保存したり読み込んだりしなくても、また、ウィ
995998
ンドウ内にファイルを残しておかなくても、他のバッファをウィンドウに表示すること
996999
が可能となる。
997-
{|+listcmds| 機能なしでコンパイルされた場合には使用できない}
9981000

9991001
*:buffer-!*
10001002
'hidden' ('hi') オプションがセットされている場合は、":edit", ":next", ":tag"
@@ -1053,6 +1055,9 @@ CTRL-W g } *CTRL-W_g}*
10531055
示されていない |hidden-buffer|
10541056
- 'modifiable' がオフのバッファ
10551057
= リードオンリーのバッファ
1058+
R 実行中のジョブありの端末バッファ
1059+
F 終了したジョブありの端末バッファ
1060+
? ジョブなしの端末バッファ: `:terminal NONE`
10561061
+ 変更のあるバッファ
10571062
x 読み込みエラーのあるバッファ
10581063

@@ -1067,6 +1072,9 @@ CTRL-W g } *CTRL-W_g}*
10671072
x 読み込みエラーのあるバッファ
10681073
% 現在のバッファ
10691074
# 代替バッファ
1075+
R 実行中のジョブありの複数の端末バッファ
1076+
F 終了したジョブありの複数の端末バッファ
1077+
? ジョブなしの複数の端末バッファ: `:terminal NONE`
10701078
フラグの合成は互いの "and" を意味します。例えば:
10711079
h+ 変更された隠れバッファ
10721080
a+ 変更されたアクティブバッファ
@@ -1100,10 +1108,8 @@ CTRL-W g } *CTRL-W_g}*
11001108
:%bdelete " delete all buffers
11011109
11021110
:bdelete[!] {bufname} *E93* *E94*
1103-
":bdelete[!] [N]" と同様だが、バッファを名前で指定する。数字が
1104-
名前になっているバッファは、その数字では参照されない。つまり、
1105-
バッファ番号として使用されてしまう。バッファ名中のスペースの前
1106-
にはバックスラッシュを入れる必要がある。
1111+
":bdelete[!] [N]" と同様だが、バッファを名前で指定する。
1112+
|{bufname}| を参照。
11071113

11081114
:bdelete[!] N1 N2 ...
11091115
":bdelete[!]" をバッファN1、N2、等に対して実行する。引数には
@@ -1139,10 +1145,8 @@ CTRL-W g } *CTRL-W_g}*
11391145
用される。
11401146

11411147
:bunload[!] {bufname}
1142-
":bunload[!] [N]" と同様だが、バッファを名前で指定する。数字が
1143-
名前になっているバッファは、その数字では参照されない。つまり、
1144-
バッファ番号として使用されてしまう。バッファ名中のスペースの前
1145-
にはバックスラッシュを入れる必要がある。
1148+
":bunload[!] [N]" と同様だが、バッファを名前で指定する。
1149+
|{bufname}| も参照。
11461150

11471151
:N,Mbunload[!] ":bunload[!]" を N から M まで(N,Mを含む)の全てのバッファに対
11481152
して実行する。
@@ -1160,10 +1164,15 @@ CTRL-W g } *CTRL-W_g}*
11601164
'buflisted' フラグを設定することなく編集する。
11611165
|+cmd| も参照。
11621166

1163-
:[N]b[uffer][!] [+cmd] {bufname}
1164-
バッファリストの {bufname} のバッファを編集する。 [!]について
1165-
|:buffer-!| を参照。これはバッファリストにないバッファも
1166-
'buflisted' フラグを設定することなく編集する。
1167+
:[N]b[uffer][!] [+cmd] {bufname} *{bufname}*
1168+
バッファリストの {bufname} のバッファを編集する。部分的な名前
1169+
も、バッファリスト内で一意である限り動作する。
1170+
バッファ名が数字であるバッファはその名前で参照することはできな
1171+
いことに注意。代わりにバッファ番号を使う。
1172+
バッファ名の中のスペースの前にバックスラッシュを差し込む。
1173+
[!] については |:buffer-!| を参照。
1174+
これはバッファリストにないバッファも 'buflisted' フラグを設定
1175+
することなく編集する。
11671176
|+cmd| も参照。
11681177

11691178
:[N]sb[uffer] [+cmd] [N] *:sb* *:sbuffer*
@@ -1175,9 +1184,9 @@ CTRL-W g } *CTRL-W_g}*
11751184
|+cmd| も参照。
11761185

11771186
:[N]sb[uffer] [+cmd] {bufname}
1178-
ウィンドウを分割しバッファリストの {bufname} バッファを編集す
1179-
。これはバッファリストにないバッファも 'buflisted' フラグを
1180-
設定することなく編集する
1187+
ウィンドウを分割しバッファリストの |{bufname}| バッファを編集
1188+
する。これはバッファリストにないバッファも 'buflisted' フラグ
1189+
を設定することなく編集する
11811190
Note: 別名でカレントバッファのコピーを作って、それを別のウィン
11821191
ドウで表示したいのなら、次のようにすること: >
11831192
:w foobar | sp #
@@ -1299,6 +1308,9 @@ help ヘルプファイルを保持する。|:help| コマンドによっての
12991308
ない。ヘルプバッファに対する 'buflisted' オプションはリセット
13001309
される。
13011310

1311+
terminal 端末ウィンドウバッファ、|terminal| を参照。ジョブが終了するま
1312+
でその内容を読み取ったり変更したりすることはできない。
1313+
13021314
directory ディレクトリの内容を表示する。ファイルエクスプローラープラグイ
13031315
ンで使用されている。このバッファは以下の設定で作成される: >
13041316
:setlocal buftype=nowrite

en/windows.txt

+37-23
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim version 8.0. Last change: 2016 Dec 01
1+
*windows.txt* For Vim version 8.1. Last change: 2018 Apr 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -222,6 +222,11 @@ CTRL-W ^ Does ":split #", split window in two and edit alternate file.
222222
When a count is given, it becomes ":split #N", split window
223223
and edit buffer N.
224224

225+
*CTRL-W_:*
226+
CTRL-W : Does the same as typing |:| : edit a command line. Useful in a
227+
terminal window, where all Vim commands must be preceded with
228+
CTRL-W or 'termkey'.
229+
225230
Note that the 'splitbelow' and 'splitright' options influence where a new
226231
window will appear.
227232

@@ -339,8 +344,9 @@ CTRL-W CTRL-C *CTRL-W_CTRL-C*
339344
*:hide*
340345
:hid[e]
341346
:{count}hid[e]
342-
Quit the current window, unless it is the last window on the
343-
screen. For {count} see |:quit| command.
347+
Without {count}: Quit the current window, unless it is the
348+
last window on the screen.
349+
If {count} is given quit the {count} window.
344350

345351
The buffer becomes hidden (unless there is another window
346352
editing it or 'bufhidden' is "unload", "delete" or "wipe").
@@ -613,7 +619,8 @@ The minimal height and width of a window is set with 'winminheight' and
613619
41. :buffers list of buffers
614620

615621
The meaning of [N] depends on the command:
616-
[N] is number of buffers to go forward/backward on ?2, ?3, and ?4
622+
[N] is the number of buffers to go forward/backward on 2/12/22/32,
623+
3/13/23/33, and 4/14/24/34
617624
[N] is an argument number, defaulting to current argument, for 1 and 21
618625
[N] is a buffer number, defaulting to current buffer, for 11 and 31
619626
[N] is a count for 19 and 39
@@ -704,7 +711,6 @@ can also get to them with the buffer list commands, like ":bnext".
704711
When using the |:tab| modifier each argument is opened in a
705712
tab page. The last window is used if it's empty.
706713
Also see |++opt| and |+cmd|.
707-
{only available when compiled with a GUI}
708714

709715
==============================================================================
710716
8. Do a command in all buffers or windows *list-repeat*
@@ -725,8 +731,7 @@ can also get to them with the buffer list commands, like ":bnext".
725731
the current window.
726732
{cmd} can contain '|' to concatenate several commands.
727733
{cmd} must not open or close windows or reorder them.
728-
{not in Vi} {not available when compiled without the
729-
|+listcmds| feature}
734+
{not in Vi}
730735
Also see |:tabdo|, |:argdo|, |:bufdo|, |:cdo|, |:ldo|,
731736
|:cfdo| and |:lfdo|
732737

@@ -754,8 +759,7 @@ can also get to them with the buffer list commands, like ":bnext".
754759
autocommand event is disabled by adding it to
755760
'eventignore'. This considerably speeds up editing
756761
each buffer.
757-
{not in Vi} {not available when compiled without the
758-
|+listcmds| feature}
762+
{not in Vi}
759763
Also see |:tabdo|, |:argdo|, |:windo|, |:cdo|, |:ldo|,
760764
|:cfdo| and |:lfdo|
761765

@@ -968,7 +972,6 @@ is no word under the cursor, and a few other things: >
968972
A hidden buffer is not displayed in a window, but is still loaded into memory.
969973
This makes it possible to jump from file to file, without the need to read or
970974
write the file every time you get another buffer in a window.
971-
{not available when compiled without the |+listcmds| feature}
972975

973976
*:buffer-!*
974977
If the option 'hidden' ('hid') is set, abandoned buffers are kept for all
@@ -1026,6 +1029,9 @@ list of buffers. |unlisted-buffer|
10261029
displayed in a window |hidden-buffer|
10271030
- a buffer with 'modifiable' off
10281031
= a readonly buffer
1032+
R a terminal buffer with a running job
1033+
F a terminal buffer with a finished job
1034+
? a terminal buffer without a job: `:terminal NONE`
10291035
+ a modified buffer
10301036
x a buffer with read errors
10311037

@@ -1040,6 +1046,9 @@ list of buffers. |unlisted-buffer|
10401046
x buffers with a read error
10411047
% current buffer
10421048
# alternate buffer
1049+
R terminal buffers with a running job
1050+
F terminal buffers with a finished job
1051+
? terminal buffers without a job: `:terminal NONE`
10431052
Combining flags means they are "and"ed together, e.g.:
10441053
h+ hidden buffers which are modified
10451054
a+ active buffers which are modified
@@ -1074,10 +1083,8 @@ list of buffers. |unlisted-buffer|
10741083
<
10751084

10761085
:bdelete[!] {bufname} *E93* *E94*
1077-
Like ":bdelete[!] [N]", but buffer given by name. Note that a
1078-
buffer whose name is a number cannot be referenced by that
1079-
name; use the buffer number instead. Insert a backslash
1080-
before a space in a buffer name.
1086+
Like ":bdelete[!] [N]", but buffer given by name, see
1087+
|{bufname}|.
10811088

10821089
:bdelete[!] N1 N2 ...
10831090
Do ":bdelete[!]" for buffer N1, N2, etc. The arguments can be
@@ -1114,10 +1121,8 @@ list of buffers. |unlisted-buffer|
11141121
into a loaded buffer.
11151122

11161123
:bunload[!] {bufname}
1117-
Like ":bunload[!] [N]", but buffer given by name. Note that a
1118-
buffer whose name is a number cannot be referenced by that
1119-
name; use the buffer number instead. Insert a backslash
1120-
before a space in a buffer name.
1124+
Like ":bunload[!] [N]", but buffer given by name.
1125+
Also see |{bufname}|.
11211126

11221127
:N,Mbunload[!] Do ":bunload[!]" for all buffers in the range N to M
11231128
|inclusive|.
@@ -1135,10 +1140,16 @@ list of buffers. |unlisted-buffer|
11351140
list, without setting the 'buflisted' flag.
11361141
Also see |+cmd|.
11371142

1138-
:[N]b[uffer][!] [+cmd] {bufname}
1139-
Edit buffer for {bufname} from the buffer list. See
1140-
|:buffer-!| for [!]. This will also edit a buffer that is not
1141-
in the buffer list, without setting the 'buflisted' flag.
1143+
:[N]b[uffer][!] [+cmd] {bufname} *{bufname}*
1144+
Edit buffer for {bufname} from the buffer list. A partial
1145+
name also works, so long as it is unique in the list of
1146+
buffers.
1147+
Note that a buffer whose name is a number cannot be referenced
1148+
by that name; use the buffer number instead.
1149+
Insert a backslash before a space in a buffer name.
1150+
See |:buffer-!| for [!].
1151+
This will also edit a buffer that is not in the buffer list,
1152+
without setting the 'buflisted' flag.
11421153
Also see |+cmd|.
11431154

11441155
:[N]sb[uffer] [+cmd] [N] *:sb* *:sbuffer*
@@ -1150,7 +1161,7 @@ list of buffers. |unlisted-buffer|
11501161
Also see |+cmd|.
11511162

11521163
:[N]sb[uffer] [+cmd] {bufname}
1153-
Split window and edit buffer for {bufname} from the buffer
1164+
Split window and edit buffer for |{bufname}| from the buffer
11541165
list. This will also edit a buffer that is not in the buffer
11551166
list, without setting the 'buflisted' flag.
11561167
Note: If what you want to do is split the buffer, make a copy
@@ -1272,6 +1283,9 @@ help Contains a help file. Will only be created with the |:help|
12721283
and can't be changed. The 'buflisted' option will be reset
12731284
for a help buffer.
12741285

1286+
terminal A terminal window buffer, see |terminal|. The contents cannot
1287+
be read or changed until the job ends.
1288+
12751289
directory Displays directory contents. Can be used by a file explorer
12761290
plugin. The buffer is created with these settings: >
12771291
:setlocal buftype=nowrite

0 commit comments

Comments
 (0)