I was inspired by this (number 2) to make my hard-coded strings ugly.
How can I do this in VIM?
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.
The language-based files are stored in
$VIMRUNTIME/syntax, one.vimfile per language, so that’s where you need to go to change things.For example, my C file is stored in
C:\Program Files\Vim\vim70\syntax\c.vimand, if you add the following line near the end, before thelet b:current_syntax = 'c', you’ll get the exact effect you require:For text-based VIM, the ctermfg and ctermbg options need to be used instead, something like:
I haven’t tested these since I only use gvim nowadays.