Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    Western Kentucky
    put this in your vimrc file:

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

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Seattle, WA, USA
    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:
    set background=light
    Alternatively, if your background is dark, you can run:
    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
  5. #4
    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