-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-indent.txt
86 lines (72 loc) · 2.12 KB
/
python-indent.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*python-indent.txt* Indent in compilance with PEP 8
Author: Akinori Hattori <hattya@gmail.com>
Repository: https://github.com/hattya/python-indent.vim
Last Change: 2022-10-09
License: MIT License
CONTENTS *python-indent-contents*
Introduction |python-indent-introduction|
Interface |python-indent-interface|
Variables |python-indent-variables|
==============================================================================
INTRODUCTION *python-indent-introduction*
*python-indent.vim* is a Vim indent plugin for Python which compiles with PEP 8.
NOTE: |python-indent.vim| does not take comments into account when calculating
indent width.
==============================================================================
INTERFACE *python-indent-interface*
------------------------------------------------------------------------------
VARIABLES *python-indent-variables*
g:python_indent_continue *g:python_indent_continue*
b:python_indent_continue *b:python_indent_continue*
The indent width for a continuation line.
The default value is 'shiftwidth'.
>
value = 1 + \
2 + \
3
value = func(
1,
2,
3)
g:python_indent_right_bracket *g:python_indent_right_bracket*
b:python_indent_right_bracket *b:python_indent_right_bracket*
If set to 1, a right bracket will be lined up under the first
non-whitespace character of the last line.
Default: >
value = [
1,
2,
3,
]
value = func(
1,
2,
3,
)
<
If set to 1: >
value = [
1,
2,
3,
]
value = func(
1,
2,
3,
)
g:python_indent_multiline_statement *g:python_indent_multiline_statement*
b:python_indent_multiline_statement *b:python_indent_multiline_statement*
If set to 1, add some extra indentation on the conditional
continuation line.
Default: >
if (isinstance(path, str) and
os.path.isfile(path)):
pass
<
If set to 1: >
if (isinstance(path, str) and
os.path.isfile(path)):
pass
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet