Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 672275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:28:00+00:00 2026-05-14T00:28:00+00:00

HI people I recently changed to VIM for coding in C. I’d like to

  • 0

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)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:28:01+00:00Added an answer on May 14, 2026 at 12:28 am

    The best way to do this is putting those two lines in the following file:

    ~/.vim/ftplugin/c.vim
    

    creating it if it’s not already present (of course you need to adjust the path to your personal Vim directory if you’re not on un*x). That file is called for every C file you edit, and it’s executed after the default scripts so your syntax won’t be overridden.

    For ftplugin to work you also have to add

    filetype on
    

    although a full

    filetype plugin indent on
    

    is usually more generally useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, I noticed some people mentioning that std::list::size() has a linear complexity. According to
Recently thanks to rails' popularity, many people start using activerecord as model. however, before
People use frequently something like: <ListBox ItemsSource={Binding ElementName=thisControl, Path=ListIndexes}> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <Label Content={Binding
People always advised me that if I am doing some application that should use
I recently asked this question: MS SQL share identity seed amongst tables (Many people
People have been developing own solutions to the following problems: Consistent messaging frameworks for
People keep giving me examples with carp instead of warn. Why? What makes carp
Many people use Mock Objects when they are writing unit tests. What is a
Most people say never throw an exception out of a destructor - doing so
Several people round here recommended switching to the new WD Velociraptor 10000rpm harddisk. Also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.