Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524648 - app-editors/vim - vim-patches-7.4.273.patch overrides vimrc settings for tabstop formatting in python sources
Summary: app-editors/vim - vim-patches-7.4.273.patch overrides vimrc settings for tabs...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 21:06 UTC by Alexander Soloviëv
Modified: 2014-10-07 05:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Soloviëv 2014-10-06 21:06:11 UTC
Within vim-patches-7.4.273.patch have arrived stupid patch for ftplugin/python.vim that unconditionally enforces the following tab settings for all python sources:

+" As suggested by PEP8.
+setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8

Any global enforcments inspired by some code formatting recommendations must not be used unconditionally in global configs.

Reproducible: Always
Comment 1 Tim Harder gentoo-dev 2014-10-07 05:33:19 UTC
(In reply to Alexander Soloviëv from comment #0)
> Within vim-patches-7.4.273.patch have arrived stupid patch for
> ftplugin/python.vim that unconditionally enforces the following tab settings
> for all python sources:
> 
> +" As suggested by PEP8.
> +setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
> 
> Any global enforcments inspired by some code formatting recommendations must
> not be used unconditionally in global configs.

Take this up with upstream, this isn't a change made by Gentoo. Also, I'd rather avoid adding to the patch set we already apply against vim's runtime files as much as possible.

In the meantime, you can always add the settings into ~/.vim/after/ftplugin/python.vim that you want to override the upstream ones.