diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-02 07:34:39 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-02 16:20:23 +0200 |
commit | 9bc4f275b364741e38e925d946becfa155d96ddb (patch) | |
tree | b6ea9186e0c7799e08d2da0a62f4c976f30ad0e4 /runtime/doc/indent.txt | |
parent | 7c19a4e51881294adc8d174c5be7f546a052c989 (diff) | |
download | rneovim-9bc4f275b364741e38e925d946becfa155d96ddb.tar.gz rneovim-9bc4f275b364741e38e925d946becfa155d96ddb.tar.bz2 rneovim-9bc4f275b364741e38e925d946becfa155d96ddb.zip |
vim-patch:5477506a9f01
Update runtime files.
https://github.com/vim/vim/commit/5477506a9f01d40fad2e8f0555bc37adee30478f
NA:
vim-patch:2a9c9f6d89f1 "undo extra changes in src/Makefile"
https://github.com/vim/vim/commit/2a9c9f6d89f19f8fa8d926e80c7f988729f6f1bd
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r-- | runtime/doc/indent.txt | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt index e69497e1ab..a99d84e969 100644 --- a/runtime/doc/indent.txt +++ b/runtime/doc/indent.txt @@ -827,7 +827,7 @@ PHP indenting can be altered in several ways by modifying the values of some global variables: *php-comment* *PHP_autoformatcomment* -To not enable auto-formatting of comments by default (if you want to use your +To not enable auto-formating of comments by default (if you want to use your own 'formatoptions'): > :let g:PHP_autoformatcomment = 0 @@ -897,7 +897,7 @@ NOTE: Indenting will be a bit slower if this option is used because some optimizations won't be available. ------------- - *PHP_vintage_case_default_indent* + *PHP_vintage_case_default_indent* To indent 'case:' and 'default:' statements in switch() blocks: > :let g:PHP_vintage_case_default_indent = 1 @@ -924,6 +924,41 @@ You will obtain the following result: > ->age() ->info(); +------------- + + *PHP_IndentFunctionCallParameters* +Extra indentation levels to add to parameters in multi-line function calls. > + let g:PHP_IndentFunctionCallParameters = 1 + +Function call arguments will indent 1 extra level. For two-space indentation: > + + function call_the_thing( + $with_this, + $and_that + ) { + $this->do_the_thing( + $with_this, + $and_that + ); + } + +------------- + + *PHP_IndentFunctionDeclarationParameters* +Extra indentation levels to add to arguments in multi-line function definitions. > + let g:PHP_IndentFunctionDeclarationParameters = 1 + +Function arguments in declarations will indent 1 extra level. For two-space indentation: > + + function call_the_thing( + $with_this, + $and_that + ) { + $this->do_the_thing( + $with_this, + $and_that + ); + } PYTHON *ft-python-indent* |