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.
Thanks
TonyB
On Jun 28, 2011, at 10:26 PM, Kent Sibilev wrote:
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
--
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