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

  • SEARCH
  • Home
  • 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 7491087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:52:19+00:00 2026-05-29T15:52:19+00:00

I enabled syntax highlighting for my C files by issuing the command :syntax on

  • 0

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?

  • 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-29T15:52:19+00:00Added an answer on May 29, 2026 at 3:52 pm

    It seems that the problem is not with vim as such. The problem is with the terminals I am using. According to VIM Documentation, the terminals I was using, vt100 and xterm don’t support colors! And hence no colors in vim too!

    But to my surprise, on another server, xterm seemed to support 8 colors. I found this by running /usr/bin/tput colors which outputted -1 on the server where there were no colors and 8 on the server which supported colors.

    Thanks to @Idigas for the appropriate pointers!

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

Sidebar

Related Questions

I just realized, that netbeans does not support syntax highlighting for markdown files. Is
Intellij IDEA is already very good at syntax highlighting .vm Velocity files or independent
I am currently using VIM in the terminal and have perfect syntax highlighting happening.
I have started to use Dreamweaver CS5 for PHP coding. The PHP syntax highlighting
I miss the Git syntax highlighting I had on Windows for every git .*
I'm using CodeMirror along with jQuery to provide syntax highlighting on a pet PoC
Under 'Syntax highlighting' there is an option for 'enable semantic highlighting'. What does that
Is there any way to tell Visual Studio 2010 to enable syntax highlighting for
Direct Question : Is it possible to enable syntax highlighting for CUDA 4.0 in
I can enable syntax highlighting for a file that has an extension that is

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.