Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417443 - app-vim/gentoo-syntax-20120109 : Please remove 80 char default word wrap
Summary: app-vim/gentoo-syntax-20120109 : Please remove 80 char default word wrap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-25 03:09 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2013-01-24 20:16 UTC (History)
2 users (show)

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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2012-05-25 03:09:54 UTC
As I comment here: 

http://archives.gentoo.org/gentoo-portage-dev/msg_6b96f731695e26d07ddfcbb052438d6e.xml

The 80 Character word wrap restriction changes how people write ebuilds, and in some cases, triggers weird unwanted behaviour that if you don't realise it had occurred, could result in broken code. 

As the 80 Character limit is not apparently part of any sort of ebuild policy[1] ( although it is suggested by the dev manual[2]), it seems strange to have it enforced by the vim syntax file for them.

I humbly suggest this 80 character limit be removed entirely ( textwidth=0 ) or pump it up to something more manageable that won't break in the middle of typing the ebuild description field. ( Which, according to repoman, may be as long as 100 characters, leaving the line length at 114 after adding the length of 'DESCRIPTION=""' to it. )

I think a nice big healthy 240 character width seems reasonable for a default, because vim *hardlimits* on that value, so it will give a reasonable amount of edit flexibility, but still have some measure of "sane" to discourage one-lining the whole file. 

1: http://archives.gentoo.org/gentoo-portage-dev/msg_7f513235d6e80371762c0730ebda28f1.xml
2: http://devmanual.gentoo.org/ebuild-writing/file-format/index.html#indenting-and-whitespace
Comment 1 Tim Harder gentoo-dev 2012-05-25 17:15:53 UTC
I'd rather not set any default value and rely on people's common sense. When that fails, people with better common sense can slap the people using 200+ char lines. ;)
Comment 2 Tim Harder gentoo-dev 2013-01-24 20:16:27 UTC
The default has now been removed from git and will be in the next release coming soon (or emerge the live ebuild).