diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-08 22:19:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-08 22:19:26 +0100 |
commit | 7720ba8599162fbbb8f7fc034f674a2ccd3ca7f1 (patch) | |
tree | d130bb2242a5993528be171cee687af290525a53 /runtime/doc/indent.txt | |
parent | bb962262eb6b18d93161d7506317d215ae80bfe5 (diff) | |
download | vim-git-7720ba8599162fbbb8f7fc034f674a2ccd3ca7f1.tar.gz |
patch 8.0.0431: 'cinoptions' cannot set indent for extern blockv8.0.0431
Problem: 'cinoptions' cannot set indent for extern block.
Solution: Add the "E" flag in 'cinoptions'. (Hirohito Higashi)
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r-- | runtime/doc/indent.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt index fdb7c67ed..efb0a7d79 100644 --- a/runtime/doc/indent.txt +++ b/runtime/doc/indent.txt @@ -325,6 +325,21 @@ The examples below assume a 'shiftwidth' of 4. void function(); void function(); } } < + *cino-E* + EN Indent inside C++ linkage specifications (extern "C" or + extern "C++") N characters extra compared to a normal block. + (default 0). + + cino= cino=E-s > + extern "C" { extern "C" { + void function(); void function(); + } } + + extern "C" extern "C" + { { + void function(); void function(); + } } +< *cino-p* pN Parameter declarations for K&R-style function declarations will be indented N characters from the margin. (default @@ -554,7 +569,7 @@ The examples below assume a 'shiftwidth' of 4. The defaults, spelled out in full, are: - cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,ps,ts,is,+s, + cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,E0,ps,ts,is,+s, c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0 Vim puts a line in column 1 if: |