comparison runtime/doc/indent.txt @ 30875:3295247d97a5

Update runtime files Commit: https://github.com/vim/vim/commit/3c053a1a5ad2a3c924929e11f2b9af20a8b901e2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 16 13:11:12 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Oct 2022 14:15:06 +0200
parents 1e91e26ceebf
children 88cad94caef9
comparison
equal deleted inserted replaced
30874:479022a91414 30875:3295247d97a5
1 *indent.txt* For Vim version 9.0. Last change: 2022 May 21 1 *indent.txt* For Vim version 9.0. Last change: 2022 Oct 10
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
980 } 980 }
981 981
982 982
983 PYTHON *ft-python-indent* 983 PYTHON *ft-python-indent*
984 984
985 The amount of indent can be set for the following situations. The examples 985 The amount of indent can be set with the `g:python_indent` |Dictionary|, which
986 given are the defaults. Note that the dictionary values are set to an 986 needs to be created before adding the items: >
987 expression, so that you can change the value of 'shiftwidth' later. 987 let g:python_indent = {}
988 The examples given are the defaults. Note that the dictionary values are set
989 to an expression, so that you can change the value of 'shiftwidth' later
990 without having to update these values.
988 991
989 Indent after an open paren: > 992 Indent after an open paren: >
990 let g:python_indent.open_paren = 'shiftwidth() * 2' 993 let g:python_indent.open_paren = 'shiftwidth() * 2'
991 Indent after a nested paren: > 994 Indent after a nested paren: >
992 let g:python_indent.nested_paren = 'shiftwidth()' 995 let g:python_indent.nested_paren = 'shiftwidth()'