LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-18-2008, 06:18 PM   #1
Gortex
Member
 
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 06:28 PM.
 
Old 08-18-2008, 06:43 PM   #2
stabu
Member
 
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
type
Code:
:echo $VIM
and
Code:
:echo $VIMRUNTIME
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.
 
  


Reply


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 05:37 PM
[SOLVED] vim without syntax highlighting lord_didger Debian 5 11-18-2006 02:29 PM
vim syntax highlighting MiniMe001 Linux - General 2 06-19-2005 12:08 PM
Java syntax highlighting in vim Phantomas Linux - Software 0 08-16-2003 05:34 AM
Vim syntax highlighting NSKL Linux - Software 2 11-09-2002 03:39 AM


All times are GMT -5. The time now is 03:05 PM.

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