Gautam Iyer wrote:

> On Thu, Feb 22, 2007 at 01:47:07AM +0300, Alexey I. Froloff wrote:
> 
> > > I find it useful to have standard functions and constants in C
> > > libraries highlighted. I attach syntax files for this purpose.
> >
> > Check out the std_c syntax, http://www.eandem.co.uk/mrw/vim/syntax/
> 
> I tried using this. It unfortunately doesn't define all std C items :(.
> The comments in this file said it could not be used as a "drop in"
> replacement for the default c.vim, so I didn't modify this.
> 
> Anyways, following suggestions from this thread I made the following
> modifications:
> 
>     1. Updated to use the most recent version of c.vim I could find.
> 
>     2. If "c_hi_identifiers" is not defined, then the attached c.vim
>        behaves exactly like the c.vim supplied with Vim.
> 
>     3. I made "c_hi_libs" a List of libraries for which you want
>        keywords to be highlighted. I chose to change to a list because
>        in the unlikely event you have hundreds and hundreds of syntax
>        files in the clibs directory, only the ones you want will be
>        loaded.
> 
>        I also made "c_hi_libs" a buffer local variable, so that you can
>        easily set it to include project specific keywords, or select a
>        set of libraries based on the project.
> 
> Again, by default users should not see any change. And users can get
> fine control of what they want highlighted from ~/.vimrc.
> 
> Bram -- If you think it would be more useful to upload it on Vim.org as
> opposed to including in Vim, let me know.

As it's currently not really clear what the best choice is for the
distributed runtime files, please upload your script to the Vim website.

My personal preference is to only highlight things that are part of the
language.  Whether items in the standard C library are part of the
language or not is already a discussion.  What "standard" means in this
context is certainly debatable.

-- 
        Very funny, Scotty.  Now beam down my clothes.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to