LinuxQuestions.org
Register a domain and help support LQ
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 08-31-2009, 12:09 PM   #1
say_hi_ravi
Member
 
Registered: Jan 2008
Posts: 70

Rep: Reputation: 15
Open shell script in color


I have Ubuntu 8.04 installed on my PC. I use Vi editor to open shell scripts. When I open shell script on Red Hat Linux it opens in nice colors default. But when I tried to open same script on ubuntu it opens up only in one color. What do I need to do to have it open nicely in colors.

I use Bash.

Thanks in advance.
 
Old 08-31-2009, 12:23 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
This is probably what you want:

Turn on or off color syntax highlighting in vi or vim
http://www.cyberciti.biz/faq/turn-on...-in-vi-or-vim/
 
Old 08-31-2009, 12:28 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Remove the vim-tiny package and install the vim-full package.
 
Old 08-31-2009, 01:46 PM   #4
say_hi_ravi
Member
 
Registered: Jan 2008
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks Catkin! It worked.
 
  


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
Can we open a browser (firefox/IE) & enter URL in it via shell/PERL script. barde Linux - Newbie 6 02-18-2009 06:21 AM
Shell script: Open program when closed? computer_freak_8 Programming 3 12-27-2008 09:13 AM
A way to open a window for user input in shell script? Anithen Linux - Software 10 08-24-2008 02:51 PM
Simple shell script to open up terminal and ssh to another machine deadseasquirrel Programming 1 02-02-2006 06:25 AM


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