LinuxQuestions.org
Visit Jeremy's Blog.
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 04-12-2008, 08:14 AM   #1
visitnag
Member
 
Registered: Mar 2008
Posts: 147

Rep: Reputation: 15
perl vim problem....


Hi,

When I am writing a perl script using vi editor (RHEL ES4 o/s).. as I type it is giving different colors according to the variables,functions,key words. Can I change the colors as i like to see, b'coz i dont like the flouracent green of keywords.(some times i am unable to read what i have typed)
 
Old 04-12-2008, 09:48 PM   #2
iggy_mon
Member
 
Registered: Aug 2003
Location: PA, USA
Distribution: Mandriva Ubuntu
Posts: 98

Rep: Reputation: 15
i found a promissing lead for you...

http://www.linux.ie/articles/tutorials/vi3.php

the overview:
1: .vimrc in your home directory configures vi
2: source /usr/share/vim/current/syntax/html.vim
this will enable html (in this example) syntax highlighting
3: editing html.vim would make the changes you are looking for


hope this helps

cheers
 
Old 04-13-2008, 04:39 AM   #3
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
You can use the :colorscheme to change the colors. At least in vim, don't know about plain vi.
 
  


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
Does anyone know you to use Vim for perl program input? fudam Programming 8 07-31-2006 01:40 AM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
Cant Run Perl from VIM! simsjr Programming 6 04-07-2005 04:16 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
vim commands in perl JohanLingen Programming 5 01-08-2003 04:43 AM


All times are GMT -5. The time now is 08:20 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