Find the answer to your Linux question:
Results 1 to 4 of 4
I want to turn all coloring in vim because it's horrible. I figured out how to turn off most of it by creating file .vimrc in my home directory and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228

    How to turn off coloring in vim


    I want to turn all coloring in vim because it's horrible. I figured out how to turn off most of it by creating file .vimrc in my home directory and putting in it 'syntax off'. That works for the text being edited. Problem is when I issue the command ':set number' the line numbering is in an unreadable color of light yellow. So how do you turn off all coloring. Trying to find something in vim's help is near impossible.

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    put this in your vimrc file:

    Code:
    syntax off
    set nohlsearch
    set t_Co=0
    linux user # 503963

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    For what it's worth, if it's just the specific colours that you have a problem with, that is all configurable. For instance, if you have a light background, you can run the command:
    Code:
    set background=light
    Alternatively, if your background is dark, you can run:
    Code:
    set background=dark
    You can also download new colour schemes from:
    search results : vim online

    and from other places on the Internet.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Thanks scathefire, that turned off all the coloring which is probably the way I'll keep it.

    Thanks Cabhan, the 'set background=dark' does make the numbering readable.

Posting Permissions

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