LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2005, 11:14 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
vi too dark colors


Hi i need to change the colors in my vi... What do u suggest me to do?
I think that colours are too dark...
 
Old 05-19-2005, 11:25 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Which colors? (The background and text colors?) Do you mean for regular text entry, or syntax highlighting for a particular coding language?
Are you using vi in a terminal window, or vim (in its own window)?
 
Old 05-19-2005, 12:24 PM   #3
devinWhalen
Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Red Hat, openBSD,Mandrake,freeBSD,SunOS
Posts: 168

Rep: Reputation: 30
You can either do this while in command mode or put it in your .virmrc file:
set background=dark

To switch back do:
set background=light

Or you can add this to your .vimrc to toggle back and forth with the F11 key.
map <F11> :let &background = ( &background == "dark"? "light" : "dark" )<CR>

Hope that helps.

BTW, the .vimrc should be in your home directory (~)

Later
 
  


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
dark display with few colors mikgigs Slackware 1 06-17-2005 04:55 PM
Screen is very dark Imerion Linux - Laptop and Netbook 19 01-23-2005 05:07 PM
cant c font... too dark santasballz Linux - Newbie 0 02-29-2004 06:21 PM
ls --color=yes -> colors too dark clockworks Linux - General 2 01-26-2004 01:31 PM
movies are in dark colors mohansr Linux - Hardware 2 09-18-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 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