JC, Mon 2011-10-17 @ 07:35:38-0700:
> I've done this before, but I can't remember how to do it.  When I edit
> a ".c" file the keywords like strcpy, strcmp, etc.  don't show the
> color I want.  How do I go about changing the colors of keywords?
> I've messed around with the c.vim file, but nothing seems to be
> working.

Well, "strcpy" and "strcmp" aren't actually keywords in C, they are just
function names that happen to be defined in the standard library. But in
general, it's not difficult to change the colors of anything you want.
You use the :syntax command (and its subcommands) to define keywords,
syntax regions, etc., and the :highlight command to define the
coloration of those syntactic constructs.

The specifics of how to do this depend heavily on the details of what
you're trying to do, so I'd just suggest you read the comprehensive
documentation provided in `:help syntax.txt` and go from there. If you
have any specific questions, I'm sure people on this list can give you
more detailed advice.

-- 
You received this message from the "vim_use" 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

Reply via email to