Solved

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

Posted on 2006-06-11
5
313 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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

685 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