Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-31-2009, 11:09 AM   #1
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, 11:23 AM   #2
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
Old 08-31-2009, 11:28 AM   #3
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, 12:46 PM   #4
Registered: Jan 2008
Posts: 70

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


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 05:21 AM
Shell script: Open program when closed? computer_freak_8 Programming 3 12-27-2008 08:13 AM
A way to open a window for user input in shell script? Anithen Linux - Software 10 08-24-2008 01:51 PM
Simple shell script to open up terminal and ssh to another machine deadseasquirrel Programming 1 02-02-2006 05:25 AM

All times are GMT -5. The time now is 10:23 PM.

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