I'm using the plugin Python-Mode, which has an PymodeLintAuto feature which 'Fix PEP8 errors in current buffer automatically'. I was wondering how I could change the max line length for that was. I couldn't find in the docs
To change max line length in pymode you change
g:pymode_options_max_line_length
with let
.
However this does not work for me, so do as @dillbert suggested. For the colorbar:
autocmd FileType python set colorcolumn=120
in your .vimrc
In recent (as of June 2018) python-mode versions, the required configuration seems to be this:
let g:pymode_options_max_line_length = 88
let g:pymode_lint_options_pep8 = {'max_line_length': g:pymode_options_max_line_length}
let g:pymode_options_colorcolumn = 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With