Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, Simple question here. I've been trying to find out how to turn off or or at least change colors in vi how do I do that? Turn off is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27

    vi and colors


    Hello,

    Simple question here. I've been trying to find out how to turn off or or at least change colors in vi how do I do that? Turn off is preferable. I have a black background in my terminal window and vi uses alot of dark colors and is difficult to read.

  2. #2
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27
    BTW, sorry about this question being in the wrong group I didn't pay attention to where I was when I posted it.

  3. #3
    Linux User
    Join Date
    Jun 2003
    Location
    Calgary, AB CANADA
    Posts
    496
    Relocated this thread for you.

    To change the colors of vim (vi is just 2 tone), edit your ~/.vimrc file. Look for
    Code:
    :syn on
    and either delete it, comment it out, or change it to
    Code:
    :syn off
    Alternately, you can modify the highlighting colors it uses...

    Hope this helps.
    \"Everything should be made as simple as possible, but not simpler.\"
    Albert Einstein

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27
    Cool I've been going nuts trying to find that info. I even bought a book on vi. I've read the man pages and couldn't find it there.

    Thanks a grunch.

  6. #5
    Linux Newbie ihayhurst's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    138
    Just found this post whilst looking for a solution,
    I couldnt read the comments on a dark background but I like the syntax highting on... there is an alternative colour set for dark backgrounds (Yipiee!!!)
    put set background=dark in your ~/.vimrc file (or into vim directly for the session)
    Cheers Ian
    Registerd Linux user #119296

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •