VIM: created syntax not showing up?
Posted
by joxnas
on Stack Overflow
See other posts from Stack Overflow
or by joxnas
Published on 2010-03-21T20:26:28Z
Indexed on
2010/03/21
20:31 UTC
Read the original article
Hit count: 405
HI people
I recently changed to VIM for coding in C.
I'd like to hightlight the operators +-<=& ... etc
I searched in google how should i do it, and i found the answer in this website: I was suppose to do something like:
syntax match Operadores /[][><()&!|+*={}-]/
hi Operadores guifg=#000000 gui=BOLD
Those characters were supposed to appear as black, bold characters. However, that doesn't happen when I open my .C files. However, if I create a newfile, (where there the C syntax doesn't show up), I am able to see the black, bolded operators.
How can i correct this situation, and why is this happening (it seams like if my syntax is beeing overwrided by the C syntax).
I'm using gvim, and this is my vimrc:
colorscheme nicotine
set smartindent
set number
set guifont=Inconsolata\ Medium\ 11
set numberwidth=5
noremap j jzz
noremap k kzz
Thanks, any help is appreciated. (And dont forget I'm a novice in VIM, and ..sorry for my English)
© Stack Overflow or respective owner