On Tue, Jun 28, 2011 at 4:12 PM, retiredff <retire...@tds.net> wrote: > I have MacVim 7.3 and while editing my .vimrc and various bash scripts I > noticed the coloring in the commented areas are different in a 'vim' file > and a ba[sh] script. In a header most put in the comments something like > this: > > File: > Last Modified: > Maintainer: > Description: > Created: > Author: > etc > etc > > In a 'vim' and 'ba[sh]' file they are preceded by comment markers " or #. In > a vim file the above words are in a different color and are tied to the > syntax color vimCommentTitle in the vim.vim syntax file. In the bash file > sh.vim the group or ??? that is similar is shComment. I found nothing like > vims commentTitle description. My question is I think, is this a matter of > copy/paste between vim.vim and sh.vim the code that highlights the area > above or is it more complex than that? >
vimCommentTitle links to PreProc highlighting element. (see :hi vimCommentTitle) You can steal the syntax elements from another filetype, but I'd rather place these modifications to .vim/after/syntax/<filetype>.vim instead of modifying standard syntax files shipped with vim. -- 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