You are not logged in.

#1 2005-12-16 16:33:50

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

about syntax highlight in vim

I'm currently using gvim.

I have enable the syntax highlight function by :syntax enable.

But I find it only display in a single color. What's wrong?
I'm sure my cpp.vim file is not broken.

Offline

#2 2005-12-16 17:00:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: about syntax highlight in vim

Can you provide a screenshot of this behavior?

Make sure to set your colorscheme - ":colorscheme desert" is a good one.  So is inkpot.

See if that helps.

Offline

#3 2005-12-16 17:14:10

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: about syntax highlight in vim

lies! peachpuff 4 life!


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2005-12-17 11:33:20

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: about syntax highlight in vim

Thank I finally found that it's my fault, but I cant told you because my school cut off the network when mid-night comes.

I made a mistake in comment-lines.
I didn't notice that there was a white-blank between my close tag, like this

* /

So the highlight was in a single color.

-----------------
I find every *.vim files include colorscheme files and syntax files etc. are all vim scripts. I can put command into them.

I put one line to the cpp.vim file to set the background to dark brown, looks perfect!

Offline

Board footer

Powered by FluxBB