I've been using Ubuntu over a year now. I always use vim to do the progaming work. I know vim has a feature with color syntax highlighting. But I don't know how to make it work.
I did lots of research online and tried different things in my .vimrc and .gvimrc files. However, I just could not make the color highlighting work!!
I know all other settings in my .vimrc file are working, except 'syntax on' takes no effects at all.
The following is my .vimrc:
To me, 'syntax on' would turn the color highighting. But it does not work. I put the same line in .gvimrc, it does not work either.
I also tried ':syntax on' in a vim session. Not working!!
BTW, I must admit that I don't know the difference between .vimrc and .gvimrc. I am not even sure whether I can have both of them in my $HOME dir.
I also tried the suggestions at this site:
Vim Color Editor HOW-TO (Vi Improved with syntax color highlighting)
No luck.
Could someone help? Thanks!!
I did lots of research online and tried different things in my .vimrc and .gvimrc files. However, I just could not make the color highlighting work!!
I know all other settings in my .vimrc file are working, except 'syntax on' takes no effects at all.
The following is my .vimrc:
Code:
set nocompatible " We're running Vim, not Vi!
set ai nu ic lisp sm ht=2 ts=2 sw=2
[COLOR=red]syntax on[/color] [b]" this line not working[/b]
map z :w
map q :q
map wq :wq
map qq :q!
abb taht that
abb teh the
abb waht what
To me, 'syntax on' would turn the color highighting. But it does not work. I put the same line in .gvimrc, it does not work either.
I also tried ':syntax on' in a vim session. Not working!!
BTW, I must admit that I don't know the difference between .vimrc and .gvimrc. I am not even sure whether I can have both of them in my $HOME dir.
I also tried the suggestions at this site:
Vim Color Editor HOW-TO (Vi Improved with syntax color highlighting)
No luck.
Could someone help? Thanks!!