I enabled syntax highlighting for my C files by issuing the command :syntax on. I expected it to change the colors of keywords etc. But to my surprise, syntax highlighting is happening, but all keywords are being underlined instead of being colored!
Am I missing out something?
It seems that the problem is not with
vimas such. The problem is with the terminals I am using. According to VIM Documentation, the terminals I was using,vt100andxtermdon’t support colors! And hence no colors invimtoo!But to my surprise, on another server,
xtermseemed to support 8 colors. I found this by running/usr/bin/tput colorswhich outputted-1on the server where there were no colors and8on the server which supported colors.Thanks to @Idigas for the appropriate pointers!