vim-autoformat/ftplugin/python.vim

6 lines
134 B
VimL

let s:prgpath = "autopep8"
let s:arguments = " /dev/stdin"
if executable(s:prgpath)
let &formatprg=s:prgpath." ".s:arguments
endif