|
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 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -42,11 +42,12 @@ is not a C compiler: it does not recognize all syntax. One requirement is
|
42 | 42 | that toplevel functions have a '{' in the first column. Otherwise they are
|
43 | 43 | easily confused with declarations.
|
44 | 44 |
|
45 |
| -These four options control C program indenting: |
| 45 | +These five options control C program indenting: |
46 | 46 | 'cindent' Enables Vim to perform C program indenting automatically.
|
47 | 47 | 'cinkeys' Specifies which keys trigger reindenting in insert mode.
|
48 | 48 | 'cinoptions' Sets your preferred indent style.
|
49 | 49 | 'cinwords' Defines keywords that start an extra indent in the next line.
|
| 50 | +'cinscopedecls' Defines strings that are recognized as a C++ scope declaration. |
50 | 51 |
|
51 | 52 | If 'lisp' is not on and 'equalprg' is empty, the "=" operator indents using
|
52 | 53 | Vim's built-in algorithm rather than calling an external program.
|
@@ -293,8 +294,9 @@ The examples below assume a 'shiftwidth' of 4.
|
293 | 294 | <
|
294 | 295 | *cino-g*
|
295 | 296 | 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. |
298 | 300 |
|
299 | 301 | cino= cino=g0 >
|
300 | 302 | { {
|
|
0 commit comments