LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2007, 12:49 PM   #1
unixshell101
Member
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 86

Rep: Reputation: 15
.gvimrc perl Question


How do i use syntax highlighting for perl in .gvimrc?do i need to make my own .gvimrc file?


i am useing gvim 7.1
 
Old 09-11-2007, 06:01 PM   #2
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
I have this section which provides the syntax highlighting. Putting it in .gvimrc will give it to your user, having it in /etc/gvimrc will do the trick systemwide.

" Switch on syntax highlighting if it wasn't on yet.
if !exists("syntax_on")
syntax on
endif

If you mean you want sytax for perl to be included with the syntax vim recognizes, I'm not sure how to go about that.
 
Old 09-11-2007, 08:51 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
If you want to see what syntax files are already installed, try this dir
/usr/share/vim/vim70/syntax
or the nearest equiv for gvim.
On my system, Perl is std.
 
  


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
Perl Question for perl hackers. linuxlover1 Programming 1 06-27-2006 07:56 PM
reinstall perl question.. (urpme perl) rjcrews Mandriva 2 01-28-2006 07:19 PM
gvimrc for gvim powah SUSE / openSUSE 1 04-26-2005 10:21 PM
font full name for gvimrc file eeried Linux - Newbie 0 08-06-2004 12:10 PM
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 04:22 PM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration