/usr/share/vim/addons/doc/autopep8.txt is in vim-autopep8 1.0.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | *autopep8.txt*
Author: tell-k (ffk2005 AT gmail DOT com)
For Vim version 7 and above
Last change: 2014 May 23
1. Overview |autopep8-overview|
2. Required |autopep8-required|
3. Installation |autopep8-installation|
4. Usage |autopep8-usage|
5. Customization |autopep8-customization|
6. License |autopep8-license|
==============================================================================
1. Overview *autopep8-overview*
vim-autopep8 is a Vim plugin that applies autopep8 to your current file.
autopep8 automatically formats Python code to conform to the PEP 8 style guide.
==============================================================================
2. Required *autopep8-required*
autopep8
>
https://pypi.python.org/pypi/autopep8/
<
==============================================================================
3. Installation *autopep8-installation*
Simply put the contents of this repository in your ~/.vim/bundle directory.
==============================================================================
4. Usage *autopep8-usage*
shortcut
1. Open Python file.
2. Press <F8> to run autopep8 on it
call function
>
:Autopep8
<
with arguments
>
:Autopep8 --range 1 5
or
:call Autopep8(" --range 1 5")
<
==============================================================================
5. Customization *autopep8-customization*
If you don't want to use the <F8> key for autopep8, simply remap it to
another key. It autodetects whether it has been remapped and won't register
the <F8> key if so. For example, to remap it to <F3> instead, use:
>
autocmd FileType python map <buffer> <F3> :call Autopep8()<CR>
<
Do not fix these errors/warnings (default: E226,E24,W6)
>
let g:autopep8_ignore="E501,W293"
<
Fix only these errors/warnings (e.g. E4,W)
>
let g:autopep8_select="E501,W293"
<
Maximum number of additional pep8 passes (default: 100)
>
let g:autopep8_pep8_passes=100
<
Set maximum allowed line length (default: 79)
>
let g:autopep8_max_line_length=79
<
Enable possibly unsafe changes (E711, E712) (default: non defined)
>
let g:autopep8_aggressive=1
<
Number of spaces per indent level (default: 4)
>
let g:autopep8_indent_size=2
<
Disable show diff window
>
let g:autopep8_disable_show_diff=1
<
==============================================================================
6. license *autopep8-license*
MIT license
|