vim-autoformat/ftplugin/python.vim

19 lines
440 B
VimL
Raw Normal View History

if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
2012-12-02 11:12:49 -05:00
"Set the formatter name and arguments for this filetype
2012-12-02 13:55:32 -05:00
let s:prgname = "autopep8"
2012-12-02 11:12:49 -05:00
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)
2013-01-20 12:19:58 -05:00
"Set indenting behaviour to match with the formatter
set expandtab
set tabstop=4
set softtabstop=4
2013-01-20 12:19:58 -05:00
set shiftwidth=4