RHEL5 gvim keyword color coding
I'm working on RHEL5 dealing with AS (ActionScript) files in Linux GVIM Editor but everything is in blue color. Can i set color coding for my keywords?
Do you have a .gvimrc file in your home directory ?
if not then create one with the following contents :
gvim should automatically start highlighting syntax.
Hi Smoker! Thank you for your response! I didn't have the file in my home directory so i created one with name ".gvimrc" with the contents you gave me. But when i logged out and in, i didn't see any difference except for the text to have reduced in size. How do i set keywords like say, i want the word "AutoPtr" to turn yellow in my CPP files and the words "private" and "function" in my AS(ActionScript) file to turn green? And i would like the text not to reduce in size.
By the way i tried putting "color torte" inside the .vimrc file and it applied that color scheme to gvim. That's weird...
And my ".as" files are all in blue color. It seems color coding and schemes don't get applied to those types of files. Can that be fixed?
You have to create your own syntax files.
Have you tried writing a bit of perl or bash to see if syntax highlighting is working ?
simple stuff like
echo "hello world"
print "hello world";
|All times are GMT -5. The time now is 04:12 PM.|