All datatypes like int,long,char are highlighted automatically as soon as i type them in VIM. But, there are few exceptions like pid_t,mode_t..
How do get them highlighted by default?
All datatypes like int,long,char are highlighted automatically as soon as i type them in VIM. But, there are few exceptions like pid_t,mode_t..
How do get them highlighted by default?
There's a directory /usr/share/vim/vim72/
where you can edit files like c.vim
and add the keywords manually.
You can add them to syntax/c.vim
in your after directory, so they complement the distributed syntax/c.vim
. For example:
syn keyword cType pid_t mode_t
See also the "Adding to an Existing Syntax File" section of the user manual.