vim-autoformat/ftplugin/python.vim
Chiel92 a4724c5dac issue 4 is neatly fixed, by storing the formatprg in a buffer local
variable, and reloading it on BufEnter,WinEnter
2013-02-08 20:05:52 +01:00

19 lines
440 B
VimL

if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
"Set the formatter name and arguments for this filetype
let s:prgname = "autopep8"
let s:arguments = "/dev/stdin"
"Set the formatprg option, if the formatter is installed
"globally or in the formatters folder
call g:FindFormatter(s:prgname, s:arguments)
"Set indenting behaviour to match with the formatter
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4