Whenever I’m typing programming keywords in vim they get specific colors.
I’d like to create my own.
How can I color text with specified color?
I tried to find the answer but haven’t found it yet
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
to extend C/CPP syntax (and that can apply to any language, just check for the already existing names, like
Constanthere) :in your
~/.vimrcand in your
~/.vim/syntax/mysyntax.vimto create new keywords from scratch :
and you can call that with
filetypedetect, or directly in your.vimrc