Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238420 - app-vim/gentoo-syntax-20080717-r1 - filetype.vim patch to recognize ._cfg\d+.*
Summary: app-vim/gentoo-syntax-20080717-r1 - filetype.vim patch to recognize ._cfg\d+.*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-22 20:44 UTC by Marc Finet
Modified: 2011-03-14 08:44 UTC (History)
1 user (show)

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


Attachments
Run autocommand with corrected filename for ._cfg* files (filetype.patch,632 bytes, patch)
2008-09-22 20:45 UTC, Marc Finet
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Finet 2008-09-22 20:44:37 UTC
When using gvim (or vim) with etc-update syntax is not recognized with \._cfg[0-9]+.* files.

Reproducible: Always

Actual Results:  
No (correct) syntax highlight


I did not succeed to find a way to patch it through gentoo-syntax because if i preferred "recursive" autocommand to be done (not forcing filetype as done in gentoo-syntax). Unfortunately the * rules matches all those ._cfg files hence patch attached below is against vim files.
You could close this bug if you want ;D as directly patching vim files might not be a good idea, or if someone find a better/clever way to do so (i did not find how to remove the filetype).
Comment 1 Marc Finet 2008-09-22 20:45:40 UTC
Created attachment 166138 [details, diff]
Run autocommand with corrected filename for ._cfg* files
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-23 11:57:46 UTC
Please fill in what version you are referring to in the Summary.
Comment 3 Marc Finet 2008-09-23 18:36:59 UTC
Sorry about gentoo-syntax version, it's 20080717-r1, And i'm currently using gvim 7.2 
Patch attached has been done against /usr/share/vim/vim72/filetype.vim 
Comment 4 Dror Levin (RETIRED) gentoo-dev 2010-04-01 22:36:21 UTC
The file filetype.vim is actually part of the vim-core packages and not gentoo-syntax. It would probably be better to fix this in vim-core and not gentoo-syntax so all users have it, not just those who have emerged gentoo-syntax, but if needed I can add the fix to gentoo-syntax.

Note that the supplied patch is backwards (files were given to diff in reverse order).
Comment 5 Tim Harder gentoo-dev 2011-03-14 08:44:11 UTC
I think the problem is fixed with the versions of vim currently in the tree. If not, please reopen the bug.