Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
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). …
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…
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.:

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now