Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-18-2008, 05:18 PM   #1
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Rep: Reputation: 30
Vim syntax highlighting

For the life of me I can not get vim syntax highlighting to work any more.

I have tried, Syn on and set hls, with no avail. Is there something that I keep missing? I use to just make a .vimrc in my home directory but that doesnt seem to work now

nevermind I dont know why this has been bothering me for so long, I noticed if I open a file that has a .c extention for example, the highlighting works. But if I just open up vim and start typing it does nothing. If any one knows a way to make it highlight with open actualy opening a file, I would be very thankfull to your insight.

Last edited by Gortex; 08-18-2008 at 05:28 PM.
Old 08-18-2008, 05:43 PM   #2
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
:echo $VIM
on the im command line and see if the path is correct. Navigate to the path and make usre there's a syntax directory there.

This often happens when you update your version of vim AND you have set a VIM path in your .bashrc that you did not update.

Generally of course, the file extension is crucial. Be consistent with your file extensions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VIM Syntax Highlighting JMJ_coder Programming 3 03-05-2008 04:37 PM
[SOLVED] vim without syntax highlighting lord_didger Debian 5 11-18-2006 01:29 PM
vim syntax highlighting MiniMe001 Linux - General 2 06-19-2005 11:08 AM
Java syntax highlighting in vim Phantomas Linux - Software 0 08-16-2003 04:34 AM
Vim syntax highlighting NSKL Linux - Software 2 11-09-2002 02:39 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration