LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-29-2007, 11:55 PM   #1
anuj_sri
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
NO highlighting in VI editor


Hi
My vi editor does not show any different colors for keywords like int,char etc.. ITs all in one color..
I installed vim, but even that did not help.
Can anyone suggest me something..so that i can get a colorful vi
 
Old 04-30-2007, 03:46 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you're using vim, you might want something like
Code:
syntax on
filetype plugin indent on
in your ~/.vimrc. vi (in the sense of nvi) doesn't do syntax highlighting and I forget what the configs are for elvis and so on. You don't say what your distro is or what your default vi is.
 
Old 04-30-2007, 09:18 AM   #3
anuj_sri
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hi
:syntax on -I tried this while editing the files. It works only with the files in /usr/local/share/vim/vim55/syntax/ directory
It doesn't work in other files outdide this directory?
what shall i do?
 
Old 04-30-2007, 10:24 AM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Un-comment the syntax line in /etc/vim/vimrc
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Actionscript editor or syntax highlighting? lhoff Linux - Software 2 06-23-2008 12:11 PM
vim editor keyword highlighting LinuxLover Linux - Software 2 10-29-2006 05:50 AM
syntax highlighting for ls command and vim editor cseanburns Other *NIX 0 01-02-2005 03:11 AM
need editor with syntax highlighting & ftp YBA^[x] Linux - Software 5 12-16-2004 04:29 PM
Getting rid of highlighting in a vi editor text file. Dee62 Linux - Newbie 6 03-11-2004 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:02 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
Open Source Consulting | Domain Registration