python-indent.vim
python-indent.vim is a Vim indent plugin for Python which complies with PEP 8.
Installation
Plugin 'hattya/python-indent.vim'Plug 'hattya/python-indent.vim', { 'for': 'python' }call dein#add('hattya/python-indent.vim')Requirements
- Vim 7.4+
Configuration
g:python_indent_continue
Indent for a continuation line.
Default value: &sw
value = 1 + \
2 + \
3
value = func(
1,
2,
3)g: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
If set to 1, add some extra indentation on the conditional continuation line.
Default:
if (isinstance(path, str) and
os.path.isfile(path)):
passIf set to 1:
if (isinstance(path, str) and
os.path.isfile(path)):
passTesting
python-indent.vim uses themis.vim for testing.
$ cd /path/to/python-indent.vim
$ git clone https://github.com/thinca/vim-themis
$ ./vim-themis/bin/themisLicense
python-indent.vim is distributed under the terms of the MIT License.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
