diff options
author | KunMing Xie <qqzz014@gmail.com> | 2018-01-25 18:26:47 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-25 11:26:47 +0100 |
commit | 8b1f7d8774b235ae4f0dc0fa64d58e3cad9f8283 (patch) | |
tree | cbd6682b648eb1b9617654eb1d41a61a957e6abd /runtime | |
parent | a3daa8cb136c83c2fc0e5c9283cde1f7a8ce246c (diff) | |
download | rneovim-8b1f7d8774b235ae4f0dc0fa64d58e3cad9f8283.tar.gz rneovim-8b1f7d8774b235ae4f0dc0fa64d58e3cad9f8283.tar.bz2 rneovim-8b1f7d8774b235ae4f0dc0fa64d58e3cad9f8283.zip |
vim-patch:8.0.0431 (#7908)
vim-patch:8.0.0431: 'cinoptions' cannot set indent for extern block
Problem: 'cinoptions' cannot set indent for extern block.
Solution: Add the "E" flag in 'cinoptions'. (Hirohito Higashi)
https://github.com/vim/vim/commit/7720ba8599162fbbb8f7fc034f674a2ccd3ca7f1
Diffstat (limited to 'runtime')
-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 cf45ec4f38..7ba5a373dc 100644 --- a/runtime/doc/indent.txt +++ b/runtime/doc/indent.txt @@ -321,6 +321,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 @@ -550,7 +565,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: |