vim missing udev.vim

Bug #229570 reported by x
10
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

From: http://www.vim.org/scripts/script.php?script_id=1381

Syntax highlighting for the udev.rules file

Revision history for this message
Andrew McCarthy (andrewmccarthy) wrote :

Vim in Hardy includes the files udevrules.vim, udevperm.vim and udevconf.vim (in /usr/share/vim/vim71/syntax and /usr/share/vim/vim71/ftplugin). Can you describe what is provided by the vim script you mention and not by these? Thanks!

Changed in vim:
status: New → Incomplete
Revision history for this message
x (xk2c-deactivatedaccount) wrote :

In the meantime i have my own workaround.

I guess at the time of filling this bugreport i didn't saw syntax highlighting with default hardy-vim in udev-files.

i have rechecked today and when opening '/etc/udev/rules.d/70-persistent-net.rules' i see:
:set filetype?
filetype=hog

I have written '~/.vim/after/ftdetect/my_filetype.vim':

    " udevrules
    autocmd BufNewFile,BufRead *udev/*.rules
                \ setlocal filetype=udevrules

    " udev permissions
    autocmd BufNewFile,BufRead *udev/*.permissions
                \ setlocal filetype=udevperm

to verify this i have used a modified /etc/vim/vimrc attached

Changed in vim:
status: Incomplete → New
Revision history for this message
x (xk2c-deactivatedaccount) wrote :

> to verify this i have used a modified /etc/vim/vimrc attached

i mean to verify syntaxhighlighting doesn't work with default hardy-vim in udev-files

Revision history for this message
Andrew McCarthy (andrewmccarthy) wrote :

Looking more closely at filetype.vim in vim 7.2 (as used in Jaunty), it looks like the filetype-detection has already been updated. I don't have a Jaunty test machine handy. If somebody listening does, can they please double-check this is correct and this bug can be closed as "Fix Released". Thanks!

Changed in vim:
status: New → Confirmed
Revision history for this message
x (xk2c-deactivatedaccount) wrote :

cough "Fix Released" cough

are hardy useres supposed to live long-term with this bug?

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

imho there is a sru for vim pending anyway:

https://bugs.launchpad.net/ubuntu/gutsy/+source/vim/+bug/240216

Revision history for this message
Andrew McCarthy (andrewmccarthy) wrote :

Since it's a relatively minor bug (i.e. not security, crash or data loss), it's going to take a bit of convincing to get it back-ported to Hardy. However, there is a procedure for this, described here: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Follow steps 1 and 2, and hopefully one of the Vim maintainers will consider it. (I'm not a Vim maintainer).

Revision history for this message
x (xk2c-deactivatedaccount) wrote :

i have marked Bug #229566 as duplicate.

It's the same issue, but an other filetype.

Revision history for this message
Gary M (garym) wrote :

Confirming fixed for udev files in maverick, and as hinted by Andrew in jaunty.

Changed in vim (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.