Solved

How do I get vim to show my mistakes in color ?

Posted on 2006-06-11
5
314 Views
Last Modified: 2010-08-05

I as being helped by a fellow geek and he used an argument with vim to show missing  second qoutes and other syntax rules.  

It was pretty cool.
0
Comment
Question by:bitmechanic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 20

Expert Comment

by:nedvis
ID: 16882889
Vim Color Editor HOW-TO (Vi Improved with syntax color highlighting)
http://www.linuxjunkies.org/html/Vim-HOWTO.html
0
 

Author Comment

by:bitmechanic
ID: 16883871
Great tutorial but it does not point out what I want.  

It just happens to come out in color so I can not search for "color" .

0
 
LVL 22

Accepted Solution

by:
pjedmond earned 150 total points
ID: 16883881
Normally this is the default if you type vim rather than vi to start this program up. The syntax highlighting is by default associated with the filename ending. For more information:

In vim:

:help syntax

Will display all you need to know...and probably more:)

HTH:)

0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16883894
You can look at the syntax rules available with:

:syntax

And can be activated with:

:syntax enable


etc etc (all viewable within the :help syntax file)

HTH:)
0
 

Author Comment

by:bitmechanic
ID: 16891210
You rock!!!

0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using sort and uniq to pare down large syslog 6 106
simple bash script needed to unpack tar.gz 4 57
umask commands 5 13
grep command usage 10 24
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question