Comment #3 on issue 98 by [email protected]: python.vim indent plugin not
pep8 compliant
http://code.google.com/p/vim/issues/detail?id=98
As of
http://code.google.com/p/vim/source/diff?spec=svn173c9c860e42e2af31d598aa6924b99d7e73bd1b&r=173c9c860e42e2af31d598aa6924b99d7e73bd1b&format=side&path=/runtime/ftplugin/python.vim
the ftplugin is now PEP8 compliant.
Unfortunately, this is really annoying. I worked on a codebase that
doesn't
follow the PEP8 indent style. I wrote some code that looked right, broke
everything, and am now angry.
There are times when it's OK to force an indent style on your users. GNU
make doesn't accept anything other than hard tabs, so I'm fine with that
ftplugin forcing hard tabs. Python becomes the 12th of 185 ftplugins to
set
a tab behavior but has no need to and breaks your editor for any codebase
that isn't PEP-8 compliant already.
It does not force. It provides defaults. You have a bunch of ways to reset
them: modelines, :au Filetype python, `set exrc` (better to use some plugin
like localrc); there are also a bunch of plugins that can detect currently
used coding style and adjust settings accordingly.
I do not think that having PEP8-compliant default is a bad thing. But
grepping /usr/share/vim/vim74/ftplugin/*.vim reveals that it is not common
to put “language default” coding styling definition into filetype plugins.
Thus I would not vote for this change.
(Oh, by the way, that last changed time is clearly wrong.)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.