how to make VI editor show colors in Unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to make VI editor show colors in Unix
# 1  
Old 02-07-2005
Data how to make VI editor show colors in Unix

Hi,
I saw some people's vi editor show different colors on the text according the nature of text when using it.
It would be nice if I can see diffrerent colors with my vi editor.
Do anybody know how to set it up?
I use PowerTermPro program to access unix machine.
I tried to use vim editor but still not showing different color.

Thanks in advance.

Last edited by whatisthis; 02-07-2005 at 03:47 PM..
# 2  
Old 02-07-2005
When using vim, you may need to add "syntax on" (or "syn on") in your $HOME/.vimrc file
to enable syntax coloring.
# 3  
Old 02-07-2005
It worked!

I just went to other people's home directory and copied the .vimrc file into my home directory and it worked!!
Thank you so much!
Smilie Smilie
# 4  
Old 02-07-2005
no problem at all, another thing I like is a color 'ls' command.

you can just alias your current ls command with 'ls --color=auto' in your .bashrc (for bash) or .cshrc for (csh) depending on what shell your using.
# 5  
Old 02-07-2005
What would it be for a Solaris v8 ksh?
# 6  
Old 05-20-2006
you want to display text in deferent color?

you mean to display the text in different color.
# 7  
Old 05-20-2006
Quote:
Originally Posted by gozer13
What would it be for a Solaris v8 ksh?
It would be not present.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk (or) UNIX random RGB colors generator?

Dear UNIX Friends, I was wondering if there is a random RGB color generator or any function in any unix platforms. Please share your ideas. Thanks (2 Replies)
Discussion started by: jacobs.smith
2 Replies

2. Windows & DOS: Issues & Discussions

Unable to show xclock in UNIX for windows

i had tried to run the xclock after i login into my HP UX machine using the C shell in the Services for Unix (Windows) but the xclock does not pop up. Do anyone has the same issue? Do i need to install some X windows package as well? Thanks (1 Reply)
Discussion started by: lchunleo
1 Replies

3. Shell Programming and Scripting

How to make diff show differences one line at a time and not group them?

Is there a way to tell diff to show differences one line at a time and not to group them? For example, I have two files: file1: line 1 line 2 line 3 diff line 4 diff line 5 diff line 6 line 7 file2: line 1 line 2 line 3 diff. line 4 diff. line 5 diff. line 6 line 7 (13 Replies)
Discussion started by: mmr11408
13 Replies

4. UNIX for Dummies Questions & Answers

show duplicates in unix

Hi, im a new member. Nice to meet you! I have a question, if someone could help me, ill really apreciate. It would make my daily work easier. :) i want to make a depth search of files in /log which the first 4 characters duplicate and with .kur extension. Example: ... (2 Replies)
Discussion started by: Master00
2 Replies

5. UNIX for Advanced & Expert Users

perl colors in nedit editor

Hi, I would like to change the color of the nedit editor for perl scripts. I tried to find the .nedit file in my $HOME directory but didn't find it. Can anyone tell where can I find the .nedit file or where can I modify the color for perl scripts in the nedit editor ? Thanks in... (2 Replies)
Discussion started by: Alalush
2 Replies

6. Shell Programming and Scripting

Is there any way to make up arrow show last command in CSh?

Hi, I've been looking for a way to make the up arrow show the last command in csh, like how it does in bash/ksh. I've been googling and just can't find anything.....anybody have any ideas? thanks! (5 Replies)
Discussion started by: sayeo
5 Replies

7. Linux

how to make text colorful in vi editor in fedora core 6

how to make texts colorful in vi editor in fedora core 6. (1 Reply)
Discussion started by: useless79
1 Replies

8. UNIX for Dummies Questions & Answers

what command can show calendar in unix system?

what command can show calendar in unix system? (2 Replies)
Discussion started by: kennethchow
2 Replies

9. UNIX for Advanced & Expert Users

Unix vi editor

Dear All, Is there a way to handle special french, spanish character is vi editor (Sun Solaris 8). Foll. is a label in notepad (windows), Cliquez ici pour revenir Ã_ la recherche de l'hôtel this label is stored in a text file, when i tranfer this file to unix using ftp (tried both ansi & bin... (6 Replies)
Discussion started by: lloydnwo
6 Replies

10. Shell Programming and Scripting

How would I make a find command NOT show the path of a file?

When I do find . -name "*.txt" -size +0 -exec ls {} \; I get something like ./lpi_stdout.txt ./lpi_stderr.txt What would I need to do or pipe it into to strip off those first two characters so I just get lpi_stdout.txt lpi_stderr.txt ? Thanks for the help! (1 Reply)
Discussion started by: LordJezo
1 Replies
Login or Register to Ask a Question