Hi, I have been using this slack-desc Vim syntax file which I wrote a couple of years ago. I recall intending to share it with this mailing list, but somehow forgot to do so (probably was busy with something at the time). So now I'm correcting my mistake and sending this file attached in hope that other slackers will find it useful. To use slackdesc.vim, put it in ~/.vim/syntax/ (if that directory doesn't exist, create it) and place the following somewhere inside your ~/.vimrc:
" Highlight SlackBuild description files. au BufNewFile,BufRead slack-desc set ft=slackdesc Feedback (especially in form of patches ;-) is welcome! -- Audrius Kažukauskas http://neutrino.lt/
" Vim syntax file " Language: slack-desc " Maintainer: Audrius Kažukauskas <audr...@neutrino.lt> " Last Change: 2010-08-21 " Version: 0.1 if exists('b:current_syntax') finish endif if has('spell') syn spell toplevel endif syn region sdComment start='^\s*#' end='$' syn region sdRuler start='^\s*|' end='|' syn region sdName start='^\w' end=':' nextgroup=sdDesc syn match sdDesc '.\{0,71}' contained nextgroup=sdOverflow contains=@Spell syn match sdOverflow '.*' contained contains=@Spell hi def link sdComment Comment hi def link sdRuler Label hi def link sdName String hi def link sdOverflow Error let b:current_syntax='slackdesc'
pgp8X84Lf5pa2.pgp
Description: PGP signature
_______________________________________________ SlackBuilds-users mailing list SlackBuilds-users@slackbuilds.org http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - http://slackbuilds.org/faq/