On Tue, Jun 28, 2011 at 10:37 PM, Tony Berkopes <retire...@tds.net> wrote: > thanks for the reply Kent. I thought it would not be simple. I have not > messed with these files before and the syntax looks intimidating! > > I have looked at the vim.vim syntax file, and as you said the > vimCommentTitle is declared, however the sh.vim has nothing like that. The > closest is shComment. I will look at the vim syntax file for help on adding > a file of my own. > This is not a bug in vim, I like my files to look the same if possible. >
By stealing I meant that you can place something like this into your ~/.vim/after/syntax/sh.vim: syn cluster shCommentGroup contains=shTodo,@Spell,shCommentTitle syn match shCommentTitle '#\s*\u\w*\(\s\+\w\w*\)*:'hs=s+1 contained contains=shCommentTitleLeader syn match shCommentTitleLeader '#\s\+'ms=s+1 contained hi def link shCommentTitle PreProc (Haven't tested it though) -- Kent -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php