Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i am having RH9 and the problem is that is cannot highlight the syntax in my vi editor. i have tried copying the .vimrc in my home dir. and also tried giving :syntax enable, but none of them help. $TERM is set to linux in text console and my terminal is able to display colors fine as i having Xwindow installed. Also, another computer with same RH9 works fine.
First, thank you Megaman X and amosf for trying to help me...
as amosf has said vi is linked to vim, it is true for RH9 also. I have tried both "syntax on" and "syntax enable" (as mentioned in vi help usr_06.txt) but none of them worked..
*06.1* Switching it on
It all starts with one simple command: >
That should work in most situations to get color in your files. Vim will
automagically detect the type of file and load the right syntax highlighting.
Suddenly comments are blue, keywords brown and strings red. This makes it
easy to overview the file. After a while you will find that black&white text
slows you down!
If you always want to use syntax highlighting, put the "syntax enable" command
in your |vimrc| file.
If you want syntax highlighting only when the terminal supports colors, you
can put this in your |vimrc| file: >
if &t_Co > 1
If you want syntax highlighting only in the GUI version, put the ":syntax
enable" command in your |gvimrc| file.