Vimjas / vim-python-pep8-indent

A nicer Python indentation style for vim.
Creative Commons Zero v1.0 Universal
790 stars 69 forks source link

set shiftwidth,tabstop and softtabstop to 4 #26

Closed dantesun closed 10 years ago

dantesun commented 10 years ago

The settings are only for python files, for other languages, we might use different shiftwidth/tabstop values.

hynek commented 10 years ago

Thanks!

It does make sense but shouldn’t it be set conditionally? i.e. set only if the user didn’t set explicitly something else?

blueyed commented 10 years ago

I think that it's not really the job of a indentation plugin to set these options.

set only if the user didn’t set explicitly something else?

I have asked in #vim on irc, and there appears to be no way to provide a default setting, without having the user to override it via after.

btw: issue #9 is a duplicate.

blueyed commented 10 years ago

OTOH, as romainl said:

the point of that plugin is to enforce pep8 compliance so yeah, forcing a shiftwidth makes sense

hynek commented 10 years ago

I find “enforce” a bit strong (it should make it possible in the first place :)) but you’re probably right.