Skip to content

Commit 016bda3

Browse files
authored
Merge pull request #2069 from h-east/update-develop
Update develop.{txt,jax}
2 parents aab692a + 5bf0f19 commit 016bda3

File tree

2 files changed

+62
-142
lines changed

2 files changed

+62
-142
lines changed

doc/develop.jax

+33-73
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*develop.txt* For Vim バージョン 9.1. Last change: 2025 Apr 18
1+
*develop.txt* For Vim バージョン 9.1. Last change: 2025 May 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -217,7 +217,7 @@ sound.c と sign.c は、配布された .clang-format ファイルに従って
217217
Marriott)
218218

219219

220-
☆コメント *style-comments*
220+
☆コメント *style-comments*
221221

222222
関数本体内に複数行のコメントを入れないようにすること。関数が非常に複雑で、一部
223223
を個別にコメントする必要がある場合は、関数の構造を再検討する必要がある。
@@ -232,15 +232,15 @@ sound.c と sign.c は、配布された .clang-format ファイルに従って
232232
<
233233

234234

235-
☆インデント *style-indentation*
235+
☆インデント *style-indentation*
236236

237237
コードのインデントには 4 つのスペースを使用する。Vim を使用してソースを編集し
238238
ている場合は、|modeline| があるため何もする必要はない。
239239

240240
他のエディタの場合は、リポジトリのルートに `.editorconfig` が提供される。
241241

242242

243-
☆宣言 *style-declarations*
243+
☆宣言 *style-declarations*
244244

245245
可能であれば、ガード内で `for` ループ変数を宣言する:
246246
OK: >
@@ -260,115 +260,77 @@ OK: >
260260
int *ptr;
261261
<
262262

263-
264-
☆括弧 *style-braces*
263+
☆括弧 *style-braces*
265264

266265
すべての波括弧は改行しなければならない:
267266
OK: >
268267
if (cond)
269268
{
270-
cmd;
271-
cmd;
269+
cmd;
270+
cmd;
272271
}
273272
else
274273
{
275-
cmd;
276-
cmd;
274+
cmd;
275+
cmd;
277276
}
278277
<
279278
間違い: >
280279
if (cond) {
281-
cmd;
282-
cmd;
280+
cmd;
281+
cmd;
283282
} else {
284-
cmd;
285-
cmd;
283+
cmd;
284+
cmd;
286285
}
287286
<
288287
OK: >
289288
while (cond)
290289
{
291290
cmd;
291+
cmd;
292292
}
293293
<
294294
間違い: >
295295
while (cond) {
296296
cmd;
297+
cmd;
297298
}
298299
<
299-
ブロックがコメントを含めて 1 行の場合は、波括弧は省略できる。
300300
OK: >
301-
if (cond)
302-
cmd;
303-
else
304-
cmd;
305-
<
306-
間違い: >
307-
if (cond)
308-
/*
309-
* comment
310-
*/
301+
do
302+
{
311303
cmd;
312-
else
313304
cmd;
305+
} while (cond);
314306
<
315-
`if`/`else` の一方のブロックに波括弧がある場合は、もう一方のブロックにも波括弧
316-
が必要である。
317-
OK: >
318-
if (cond)
319-
{
320-
cmd;
321-
}
322-
else
307+
または >
308+
do
323309
{
324310
cmd;
325311
cmd;
326312
}
313+
while (cond);
327314
<
328315
間違い: >
329-
if (cond)
330-
cmd;
331-
else
332-
{
333-
cmd;
334-
cmd;
335-
}
336-
337-
if (cond)
338-
{
316+
do {
339317
cmd;
340318
cmd;
341-
}
342-
else
343-
cmd;
344-
<
345-
OK: >
346-
while (cond)
347-
cmd;
348-
<
349-
間違い:
350-
>
351-
while (cond)
352-
if (cond)
353-
cmd;
319+
} while (cond);
354320
<
355321

356-
357322
☆型 *style-types*
358323

359-
記述的な型を使用すること。それらのリストは src/structs.h ファイル内、またはお
360-
そらく作業中のファイルの typedef 内にある。
361-
362-
Note すべてのカスタム型には「_T」という接尾辞が付けられることに注意
324+
説明的な型を使用すること。これらは src/vim.h や src/structs.h などで定義されて
325+
いる。
326+
Note すべてのカスタム型には "_T" という接尾辞が付けられることに注意
363327

364-
OK: >
365-
int is_valid_line_number(linenr_T lnum);
366-
<
367-
間違い: >
368-
int is_valid_line_number(unsigned long lnum);
328+
例: >
329+
linenr_T
330+
buf_T
331+
pos_T
369332
<
370333

371-
372334
☆空白と句読法 *style-spaces*
373335

374336
関数名と括弧の間に空白はない:
@@ -388,8 +350,8 @@ OK: func(arg1, arg2); for (i = 0; i < 2; ++i)
388350

389351
'=', '+', '/' 等の前後に空白を入れる。
390352

391-
間違い: var=a*5;
392353
OK: var = a * 5;
354+
間違い: var=a*5;
393355

394356
似たような動作をグループ化するには、空行を使う。
395357

@@ -414,7 +376,6 @@ OK: >
414376
while (buf != NULL && !got_int)
415377
<
416378

417-
418379
☆関数 *style-functions*
419380

420381
関数宣言は、戻り値の型を別のインデントされた行に記述して使用する:
@@ -568,20 +529,19 @@ OK: do
568529
ンドウ、xtermのウィンドウ、Vimのバッファを表示するウィンドウなど。
569530

570531
混乱を避けるため、時にウィンドウと呼ばれる他の物には別の名前が付けられている。
571-
ここに関連する物の概観を示す
532+
ここに関連する物の概観を示す:
572533

573534
スクリーン(screen) ディスプレイ全体。GUIでは例えば1024x768ピクセルの画
574535
面。Vimシェルはスクリーン全体を使うことも一部を使う
575536
こともできる。
576-
577537
シェル(shell) Vimアプリケーション。スクリーン全体(例えばコンソール
578538
で実行した時)、あるいはその一部(xtermやGUI)。
579-
580539
ウィンドウ(window) バッファの表示画面。Vimは複数のウィンドウを持つこと
581540
ができる。ウィンドウはコマンドラインやメニューバー、
582541
ツールバーなどといっしょに表示される。これらはシェル
583542
に納まる。
584543

544+
585545
スペルチェック *develop-spell*
586546

587547
Vim にスペルチェックを追加することになったとき、利用可能なスペルチェックのライ

0 commit comments

Comments
 (0)