1
- *indent.txt* For Vim version 8.0 . Last change: 2014 Dec 06
1
+ *indent.txt* For Vim version 8.1 . Last change: 2018 Apr 04
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -414,10 +414,10 @@ The examples below assume a 'shiftwidth' of 4.
414
414
*cino-(*
415
415
(N When in unclosed parentheses, indent N characters from the line
416
416
with the unclosed parentheses. Add a 'shiftwidth' for every
417
- unclosed parentheses. When N is 0 or the unclosed parentheses
418
- is the first non-white character in its line, line up with the
419
- next non-white character after the unclosed parentheses.
420
- (default 'shiftwidth' * 2).
417
+ extra unclosed parentheses. When N is 0 or the unclosed
418
+ parentheses is the first non-white character in its line, line
419
+ up with the next non-white character after the unclosed
420
+ parentheses. (default 'shiftwidth' * 2).
421
421
422
422
cino= cino=(0 >
423
423
if (c1 && (c2 || if (c1 && (c2 ||
@@ -428,7 +428,8 @@ The examples below assume a 'shiftwidth' of 4.
428
428
{ {
429
429
<
430
430
*cino-u*
431
- uN Same as (N, but for one level deeper. (default 'shiftwidth' ).
431
+ uN Same as (N, but for one nesting level deeper.
432
+ (default 'shiftwidth' ).
432
433
433
434
cino= cino=u2 >
434
435
if (c123456789 if (c123456789
@@ -906,6 +907,25 @@ In PHP braces are not required inside 'case/default' blocks therefore 'case:'
906
907
and 'default:' are indented at the same level than the 'switch()' to avoid
907
908
meaningless indentation. You can use the above option to return to the
908
909
traditional way.
910
+ -------------
911
+
912
+ *PHP_noArrowMatching*
913
+ By default the indent script will indent multi-line chained calls by matching
914
+ the position of the '->': >
915
+
916
+ $user_name_very_long->name()
917
+ ->age()
918
+ ->info();
919
+
920
+ You can revert to the classic way of indenting by setting this option to 1: >
921
+ :let g:PHP_noArrowMatching = 1
922
+
923
+ You will obtain the following result: >
924
+
925
+ $user_name_very_long->name()
926
+ ->age()
927
+ ->info();
928
+
909
929
910
930
911
931
PYTHON *ft-python-indent*
0 commit comments