Support another autopep8 version.

This commit is contained in:
Chiel92 2015-10-10 14:00:00 +02:00
parent bf56a4c12d
commit ebce50ee3b

View File

@ -4,12 +4,16 @@
" Python
if !exists('g:formatdef_autopep8')
let g:formatdef_autopep8 = '"autopep8 - --range ".a:firstline." ".a:lastline." ".(&textwidth ? "--max-line-length=".&textwidth : "")'
if !exists('g:formatdef_autopep8_1_0_3')
let g:formatdef_autopep8_1_0_3 = '"autopep8 - --range ".a:firstline." ".a:lastline." ".(&textwidth ? "--max-line-length=".&textwidth : "")'
endif
if !exists('g:formatdef_autopep8_1_2_1')
let g:formatdef_autopep8_1_2_1 = '"autopep8 - --line-range ".a:firstline." ".a:lastline." ".(&textwidth ? "--max-line-length=".&textwidth : "")'
endif
if !exists('g:formatters_python')
let g:formatters_python = ['autopep8']
let g:formatters_python = ['autopep8_1_0_3', 'autopep8_1_2_1']
endif