Skip to content

Commit f8de019

Browse files
committed
Merge pull request #162 from vim-jp/catchup-7.4.1194
WIP: catch up 7.4.1194
2 parents 967b47b + ab82c4b commit f8de019

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+5103
-1864
lines changed

catchup-7.4.1194.md

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# 7.4.1194 に追いつくプロジェクト
2+
3+
ここらでいっちょ最新に追いつこうぜ、というプロジェクト。最低限、新機能のド
4+
キュメントを未翻訳のままでも、日本語ファイルに組み入れてしまう。
5+
6+
最近Vim本体の更新が激しいので、多少のズレはでてしまうが、まずは気にせず1194を
7+
ターゲットにする。
8+
9+
## 流れ
10+
11+
1. 英語ファイルを全部更新 (終わった!)
12+
2. 1の差分を見ながら、日本語ファイルに英文のまま反映 (最低限の目標:終わった!)
13+
3. 2の差分を翻訳 (できたらココまでやりたい)
14+
4. このファイルを削除
15+
16+
## ファイル一覧
17+
18+
### 英文だけは反映済み
19+
20+
以上は変更点が100行未満なので、翻訳しやすいはず。
21+
22+
doc/autocmd.jax
23+
doc/change.jax
24+
doc/develop.jax
25+
doc/editing.jax
26+
doc/fold.jax
27+
doc/hangulin.jax
28+
doc/if_lua.jax # 100行超えたけど、内容的に大したことない
29+
doc/if_mzsch.jax
30+
doc/if_perl.jax
31+
doc/if_pyth.jax
32+
doc/if_ruby.jax
33+
doc/if_tcl.jax
34+
doc/insert.jax
35+
doc/map.jax
36+
doc/netbeans.jax
37+
doc/pattern.jax
38+
doc/quickref.jax
39+
doc/repeat.jax
40+
doc/spell.jax
41+
doc/tagsrch.jax
42+
doc/term.jax
43+
doc/usr_02.jax # 行数は多いけど、まとまった書き換えで、楽そう
44+
doc/usr_03.jax
45+
doc/usr_41.jax
46+
doc/various.jax
47+
48+
こっから先は100行超えるので、嫌。
49+
50+
doc/eval.jax
51+
doc/options.jax
52+
doc/pi_netrw.jax # 地獄
53+
doc/syntax.jax
54+
doc/windows.jax
55+
56+
### 完訳!
57+
58+
doc/cmdline.jax
59+
doc/filetype.jax
60+
doc/help.jax
61+
doc/index.jax
62+
doc/mlang.jax
63+
doc/os_os2.jax
64+
doc/quickfix.jax
65+
doc/usr_29.jax
66+
doc/usr_43.jax
67+
doc/vi_diff.jax
68+
69+
### その他/深い事情があって断念したもの
70+
71+
まだない

doc/autocmd.jax

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim バージョン 7.4. Last change: 2014 Aug 22
1+
*autocmd.txt* For Vim バージョン 7.4. Last change: 2015 Dec 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -514,6 +514,8 @@ ColorScheme カラースキームを読み込んだ後。 |:colorscheme|
514514
*CompleteDone*
515515
CompleteDone 挿入モード補完が完了したとき。補完が実行されて
516516
も中止されても発行される。 |ins-completion|
517+
The |v:completed_item| variable contains
518+
information about the completed item.
517519

518520
*CursorHold*
519521
CursorHold 'updatetime' の時間の間、ユーザーがキーを押さ
@@ -529,6 +531,11 @@ CursorHold 'updatetime' の時間の間、ユーザーがキーを押さ
529531
い。
530532
レコーディングの最中にはCursorHoldイベントは発
531533
生しない。|q|
534+
*<CursorHold>*
535+
Internally the autocommand is triggered by the
536+
<CursorHold> key. In an expression mapping
537+
|getchar()| may see this character.
538+
532539
Note: このイベントには対話的なコマンドは使えな
533540
いことに注意。「続けるには」プロンプトは現れず、
534541
スクリーンは必要に応じて直接更新される。
@@ -942,6 +949,13 @@ WinLeave ウィンドウを離れる前。次に入るウィンドウで他の
942949
==============================================================================
943950
6. パターン *autocmd-patterns* *{pat}*
944951

952+
The {pat} argument can be a comma separated list. This works as if the
953+
command was given with each pattern separately. Thus this command: >
954+
:autocmd BufRead *.txt,*.info set et
955+
Is equivalent to: >
956+
:autocmd BufRead *.txt set et
957+
:autocmd BufRead *.info set et
958+
945959
ファイルパターン {pat} がファイル名とマッチするかどうかは、2通りの方法で調べら
946960
れる。
947961
1. パターンに '/' が含まれないとき: Vimはファイル名の後ろの部分からのみマッチ
@@ -1045,7 +1059,7 @@ Note: パスの途中だけにマッチさせ、ルートディレクトリに
10451059
例: >
10461060
:au CursorHold <buffer> echo 'hold'
10471061
:au CursorHold <buffer=33> echo 'hold'
1048-
:au CursorHold <buffer=abuf> echo 'hold'
1062+
:au BufNewFile * au CursorHold <buffer=abuf> echo 'hold'
10491063
10501064
自動コマンドに対するコマンドは全てバッファローカルな自動コマンドに対しても機能
10511065
する。パターンの代わりに特別な文字列を使う。例: >
@@ -1104,6 +1118,9 @@ Note: パスの途中だけにマッチさせ、ルートディレクトリに
11041118
:aug[roup] {name} 後に続くコマンド ":autocmd" のためのグループ名
11051119
を定義する。{name} を "end" や "END" にすると
11061120
既定のグループが選ばれる。
1121+
To avoid confusion, the name should be
1122+
different from existing {event} names, as this
1123+
most likely will not do what you intended.
11071124

11081125
*:augroup-delete* *E367*
11091126
:aug[roup]! {name} 自動コマンドのグループ {name} を削除する。その

doc/change.jax

+63-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 7.4. Last change: 2015 Sep 06
1+
*change.txt* For Vim バージョン 7.4. Last change: 2016 Jan 19
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -404,8 +404,14 @@ CTRL-X カーソルの下または後の数字またはアルファベット
404404
される (そのため効果的に [count] ごとに減少する配列を
405405
作ることができる)。 {Vi にはない}
406406

407-
コマンド CTRL-ACTRL-X は(符号付)10進数と符号なし8進/16進数、アルファベッ
408-
トに対し機能する。この動作はオプション 'nrformats' に依存する。
407+
The CTRL-A and CTRL-X commands can work for:
408+
- signed and unsigned decimal numbers
409+
- unsigned binary, octal and hexadecimal numbers
410+
- alphabetic characters
411+
412+
This depends on the 'nrformats' option:
413+
- When 'nrformats' includes "bin", Vim assumes numbers starting with '0b' or
414+
'0B' are binary.
409415
- 'nrformats' が "octal" を含むときは、Vimは '0' で始まり、'8' や '9' を含まな
410416
い数字を8進数として取り扱う。他の数は10進数とみなされ、マイナス符号が付いて
411417
もよい。カーソルが数の上にあれば、コマンドはその数に適用される。そうでなけれ
@@ -418,9 +424,9 @@ CTRL-X カーソルの下または後の数字またはアルファベット
418424
を変更する。これはアルファベットのインデックスつきのリストを作るときに便利で
419425
ある。
420426

421-
10進数では先頭の負の符号は増加/減少に対して考慮される。8進数と16進数では考慮さ
422-
れない。
423-
符号を無視するには CTRL-A または CTRL-X を使う前に数字をビジュアル選択する
427+
10進数では先頭の負の符号は増加/減少に対して考慮される。しかし2進数、8進数およ
428+
び16進数では考慮されない。符号を無視するには CTRL-A または CTRL-X を使う前に数
429+
字をビジュアル選択する
424430

425431
ゼロから始まる数 (全ての8進数、16進数を含む) に対して、Vimはできる限りその数の
426432
文字数を保とうとする。"0077" 上で CTRL-A を使うと "0100" となり、"0x100" 上で
@@ -432,6 +438,10 @@ CTRL-X を使うと "0x0ff" となる。
432438
Note: 'nrformats' が "octal" を含んでいるとき、0で始まる10進数は、8進数と区別
433439
しづらいため、意図しない結果になる可能性がある。
434440

441+
Note similarly, when 'nrformats' includes "bin", binary numbers with a leading
442+
'0x' or '0X' can be interpreted as hexadecimal rather than binary since '0b'
443+
are valid hexadecimal digits.
444+
435445
コマンド CTRL-A はマクロ内でたいへん便利である。例: 番号付きリストを作るには、
436446
次の方法を使う。
437447

@@ -836,6 +846,36 @@ NOTE: 以前のバージョンでは CTRL-V が特別に扱われていた。こ
836846
:s/\([ab]\)\|\([cd]\)/\1x/g "a b c d" を "ax bx x x" に置換
837847
<
838848

849+
*:sc* *:sce* *:scg* *:sci* *:scI* *:scl* *:scp* *:sg* *:sgc*
850+
*:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si*
851+
*:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp*
852+
*:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl*
853+
*:srn* *:srp*
854+
2-letter and 3-letter :substitute commands ~
855+
856+
List of :substitute commands
857+
| c e g i I n p l r
858+
| c :sc :sce :scg :sci :scI :scn :scp :scl ---
859+
| e
860+
| g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr
861+
| i :sic :sie --- :si :siI :sin :sip --- :sir
862+
| I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr
863+
| n
864+
| p
865+
| l
866+
| r :src --- :srg :sri :srI :srn :srp :srl :sr
867+
868+
Exceptions:
869+
:scr is `:scriptnames`
870+
:se is `:set`
871+
:sig is `:sign`
872+
:sil is `:silent`
873+
:sn is `:snext`
874+
:sp is `:split`
875+
:sl is `:sleep`
876+
:sre is `:srewind`
877+
878+
839879
式で置換する *sub-replace-expression*
840880
*sub-replace-\=* *s/\=*
841881

@@ -939,7 +979,7 @@ NOTE: 以前のバージョンでは CTRL-V が特別に扱われていた。こ
939979

940980
:reg[isters] {arg} {arg} に指定された名前付きレジスタおよび番号付きレジス
941981
タを表示する。例: >
942-
:dis 1a
982+
:reg 1a
943983
< レジスタ '1' と 'a' が表示される。{arg} の中では空白を
944984
用いてよい。 {Vi にはない}
945985

@@ -1647,18 +1687,26 @@ Vimはソート関数とソートコマンドを備えている。ソート関
16471687
|uniq()| を参照。
16481688

16491689
*:sor* *:sort*
1650-
:[range]sor[t][!] [i][u][r][n][x][o] [/{pattern}/]
1690+
:[range]sor[t][!] [b][f][i][n][o][r][u][x] [/{pattern}/]
16511691
[range]の行をソートする。範囲が指定されない場合は全行
16521692
をソートする。
16531693

16541694
[!]をつけると順序が逆になる。
16551695

16561696
[i]をつけると大文字・小文字を区別しない。
16571697

1698+
Options [n][f][x][o][b] are mutually exclusive.
1699+
16581700
[n]をつけると行の({pattern}のマッチの後ろまたは内側
16591701
の)最初の10進数の数字でソートする。
16601702
数字が '-' で始まる場合、マイナスとみなされる。
16611703

1704+
With [f] sorting is done on the Float in the line.
1705+
The value of Float is determined similar to passing
1706+
the text (after or inside a {pattern} match) to
1707+
str2float() function. This option is available only
1708+
if Vim was compiled with Floating point support.
1709+
16621710
[x]をつけると行の({pattern}のマッチの後ろまたは内側
16631711
の)最初の16進数の数字でソートする。"0x" と "0X" は無視
16641712
される。
@@ -1667,10 +1715,13 @@ Vimはソート関数とソートコマンドを備えている。ソート関
16671715
[o]をつけると行の({pattern}のマッチの後ろまたは内側
16681716
の)最初の8進数の数字でソートする。
16691717

1670-
[u]をつけると連続する同一行の最初の行だけを残す。
1671-
([i]がつくと大文字・小文字を無視する)
1672-
このフラグがつかない場合、連続する同一行はそのままの順
1673-
序で残される。
1718+
With [b] sorting is done on the first binary number in
1719+
the line (after or inside a {pattern} match).
1720+
1721+
[u]をつけると (u は unique=「一意の」という意味に基づ
1722+
く) 連続する同一行の最初の行だけを残す。([i]がつくと大
1723+
文字・小文字を無視する) このフラグがつかない場合、連続
1724+
する同一行はそのままの順序で残される。
16741725
Note: 行頭に行末の空白があると異なる行とみなされる。
16751726

16761727
/pattern/が指定され、フラグ[r]がない場合は{pattern}

doc/cmdline.jax

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim バージョン 7.4. Last change: 2015 Sep 25
1+
*cmdline.txt* For Vim バージョン 7.4. Last change: 2015 Dec 17
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -95,6 +95,11 @@ CTRL-E または <End> *c_CTRL-E* *c_<End>* *c_End*
9595
*c_<LeftMouse>*
9696
<LeftMouse> カーソルをマウスでクリックした所へ移動する
9797

98+
*c_<MiddleMouse>*
99+
<MiddleMouse> クリップボード(X11 ではプライマリ選択)の内容を貼り付ける。これ
100+
CTRL-R * を使った動作に似ているが、行間に CR は挿入されな
101+
い。
102+
98103
CTRL-H *c_<BS>* *c_CTRL-H* *c_BS*
99104
<BS> カーソル前の文字を削除する (<BS> キーが思い通り働かないときは
100105
|:fixdel| を参照)。

doc/develop.jax

+44-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*develop.txt* For Vim バージョン 7.4. Last change: 2014 Mar 27
1+
*develop.txt* For Vim バージョン 7.4. Last change: 2016 Jan 19
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -168,13 +168,28 @@ Vimのソースコードに変更を加える際、守るべきルールがあ
168168
MAKING CHANGES *style-changes*
169169

170170
コードに変更を加える基本的なステップは:
171-
1. ドキュメントを調整する。最初にこれをやることで、あなたの行う変更がユーザー
171+
1. Get the code from github. That makes it easier to keep your changed
172+
version in sync with the main code base (it may be a while before your
173+
changes will be included). You do need to spend some time learning git,
174+
it's not the most user friendly tool.
175+
2. ドキュメントを調整する。最初にこれをやることで、あなたの行う変更がユーザー
172176
に与える影響について、おおまかな印象をもつことができる。
173-
2. ソースコードに変更を加える。
174-
3. 変更がリストされた項目に影響を与えていないか、../doc/todo.txtをチェックす
177+
3. ソースコードに変更を加える。
178+
4. 変更がリストされた項目に影響を与えていないか、../doc/todo.txtをチェックす
175179
る。
176-
4. 無修正のコードとドキュメントに対するパッチを、"diff -c" によって得る。
177-
5. 変更に関する注意書きを作り、パッチに含める。
180+
5. Make a patch with "git diff". You can also create a pull request on
181+
github, but it's the diff that matters.
182+
6. Make a note about what changed, preferably mentioning the problem and the
183+
solution. Send an email to the vim-dev maillist with an explanation and
184+
include the diff. Or create a pull request on github.
185+
186+
187+
C COMPILER *style-compiler*
188+
189+
The minimal C compiler version supported is C89, also known as ANSI C.
190+
Later standards don't add much and C89 is the widest supported.
191+
192+
One restriction that this implies: no // comments, only /* comments */.
178193

179194

180195
USE OF COMMON FUNCTIONS *style-functions*
@@ -200,7 +215,7 @@ NAMES *style-names*
200215

201216
関数の名前に31文字より長い名前は使えない。(VMSのために)
202217

203-
"delete" という名前の変数を使わないこと。C++で問題となる。
218+
"delete" や "this" という名前の変数を使わないこと。C++で問題となる。
204219

205220
Vimができる限り多くのシステム上で走るという必要上、システムによってすでに定義
206221
されている名前を使うことは避けねばならない。これは、問題となることが知られて
@@ -290,6 +305,25 @@ OK: do
290305
a = 1;
291306
while (cond);
292307

308+
間違い: if (cond) {
309+
cmd;
310+
cmd;
311+
} else {
312+
cmd;
313+
cmd;
314+
}
315+
316+
OK: if (cond)
317+
{
318+
cmd;
319+
cmd;
320+
}
321+
else
322+
{
323+
cmd;
324+
cmd;
325+
}
326+
293327

294328
関数は次のようにして始める:
295329

@@ -303,9 +337,9 @@ OK: /*
303337
* 戻り値の説明。
304338
*/
305339
int
306-
function_name(arg1, arg2)
307-
int arg1; /* short comment about arg1 */
308-
int arg2; /* short comment about arg2 */
340+
function_name(
341+
int arg1, /* short comment about arg1 */
342+
int arg2) /* short comment about arg2 */
309343
{
310344
int local; /* comment about local */
311345

0 commit comments

Comments
 (0)