Skip to content

Commit 3085709

Browse files
authored
Merge pull request #1084 from tsuyoshicho/update/20220424/indent
Update indent.{txt,jax}
2 parents f70817d + e1671ae commit 3085709

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

doc/indent.jax

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*indent.txt* For Vim バージョン 8.2. Last change: 2022 Jan 31
1+
*indent.txt* For Vim バージョン 8.2. Last change: 2022 Apr 07
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -41,11 +41,12 @@ VimにはCスタイルの言語を自動的にインデントするためのオ
4141
レベル関数が第1桁が '{' で始まっていることである。そうなっていないと宣言との区
4242
別が困難である。
4343

44-
Cのインデントはこの4つのオプションで制御されている:
44+
Cのインデントはこの5つのオプションで制御されている:
4545
'cindent' Cの自動インデントを有効化する。
4646
'cinkeys' 再インデントの引金となる挿入モードでのキーを指定する。
4747
'cinoptions' 好みのインデントスタイルを設定する。
4848
'cinwords' 次の行から特別なインデントを開始するキーワードを定義する。
49+
'cinscopedecls' C++ スコープ宣言として認識される文字列を定義する。
4950

5051
オプション 'lisp' がオフで 'equalprg' が空ならば、オペレータ "=" は外部プログ
5152
ラムではなくVimの内蔵アルゴリズムを使用してインデントを行う。
@@ -295,9 +296,9 @@ CTRL-TやCTRL-Dを使用してインデントを変更した後では、Vimは
295296
<
296297
*cino-g*
297298
gN C++のスコープ宣言をそれが含まれるブロックのインデントから N の位
298-
置へ配置する。"public:", "protected:", "private:" がスコープ宣言
299-
になり得る。
300-
(省略値 'shiftwidth')
299+
置へ配置する。(省略値 'shiftwidth')。デフォルトでは、スコープ宣
300+
言は "public:", "protected:" または "private:" である。これは
301+
'cinscopedecls' オプションで調整できる。
301302

302303
cino= cino=g0 >
303304
{ {

en/indent.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*indent.txt* For Vim version 8.2. Last change: 2022 Jan 31
1+
*indent.txt* For Vim version 8.2. Last change: 2022 Apr 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -42,11 +42,12 @@ is not a C compiler: it does not recognize all syntax. One requirement is
4242
that toplevel functions have a '{' in the first column. Otherwise they are
4343
easily confused with declarations.
4444

45-
These four options control C program indenting:
45+
These five options control C program indenting:
4646
'cindent' Enables Vim to perform C program indenting automatically.
4747
'cinkeys' Specifies which keys trigger reindenting in insert mode.
4848
'cinoptions' Sets your preferred indent style.
4949
'cinwords' Defines keywords that start an extra indent in the next line.
50+
'cinscopedecls' Defines strings that are recognized as a C++ scope declaration.
5051

5152
If 'lisp' is not on and 'equalprg' is empty, the "=" operator indents using
5253
Vim's built-in algorithm rather than calling an external program.
@@ -293,8 +294,9 @@ The examples below assume a 'shiftwidth' of 4.
293294
<
294295
*cino-g*
295296
gN Place C++ scope declarations N characters from the indent of the
296-
block they are in. (default 'shiftwidth'). A scope declaration
297-
can be "public:", "protected:" or "private:".
297+
block they are in. (default 'shiftwidth'). By default, a scope
298+
declaration is "public:", "protected:" or "private:". This can
299+
be adjusted with the 'cinscopedecls' option.
298300

299301
cino= cino=g0 >
300302
{ {

0 commit comments

Comments
 (0)