I did enable the vim syntax highlight in vimrc,I can see void and int keyword is different color than other code,but the problem is I cannot see the function syntax highlight, function like memcpy malloc doesn't have syntax highlight,and of course my own function doesn't have syntax highlight too,
Asked
Active
Viewed 499 times
2
-
Similar question [here](http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim) – Birei Dec 27 '11 at 14:14
3 Answers
3
I use this C syntax file extension, and I would recommend it, because it works nice: all functions, both built-in and user-defined, are highlighted. You can check out screenshot.
Just for your information: there's colorscheme desert256 on this screenshot, but, of course, you can use any colorscheme.

Dmitry Frank
- 10,417
- 10
- 64
- 114
2
vim only highlight keywords of C
, such as if
, else
, while
... and "string literal"
.
Because it's can be easily parsed by regex
.
Only compiler can tell memcpy
is a function.

kev
- 155,172
- 47
- 273
- 272
0
Please download a colorscheme
from here and update your .vimrc
with colorscheme <name-of-the-color-scheme>
to get highlighting.
Please refer this for details in vim colorscheme

Sangeeth Saravanaraj
- 16,027
- 21
- 69
- 98