LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-19-2008, 08:39 AM   #1
tarinisunil
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: Disabled
please help about vi text editor(urgent)


please sir i want to have different colors for different commands while writing a program in vi for C or C++ how is this possible
somebody told me that there is something related to .vimrc something sir please help
 
Old 02-19-2008, 08:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
please do not mark threads as urgent. it is not urgent for anyone who donates their time to help others. and you're asking about syntax highlighting? that's *never* going to be urgent. thanks.
 
Old 02-19-2008, 09:29 AM   #3
kmack1023
LQ Newbie
 
Registered: Apr 2005
Location: Detroit, MI
Distribution: Ubuntu (home), SLES (work)
Posts: 27

Rep: Reputation: 15
google is your friend

try using google...I did a google search for "bash script syntax highlighting vim" and found if you just run ":syntax on" in vim, it'll hightlight for you...
 
Old 02-19-2008, 11:10 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Add something like this to your .vimrc:
Code:
:syntax on
:colorscheme desert
You can find more colorschemes in /opt/kde3/share/vim/vim62/colors/ (assuming you are using Vim version 6.2).
 
  


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
text selection question in text editor olin Linux - Software 1 09-25-2007 02:25 PM
Text Editor on Fedora Core 4 in Text Mode blong4life Linux - Software 5 07-31-2006 10:07 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 12:28 PM
x text editor monohouse Linux - Software 8 11-08-2004 07:09 AM
IN Urgent need of a WAV editor for KDE shassouneh Linux - Software 2 05-25-2002 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 PM.

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