search

Home  >  Q&A  >  body text

macos - Color issue with mac terminal

Configuring the color of the terminal and the vim of the terminal are so uncomfortable because of the color. Anyone who has used the solarizde theme should know what it looks like, but after I finished configuring it, it looked like:

I searched a lot of answers on the Internet but nothing worked. What about xterm-256? Set t_Co=256. I have used many of them, but it just doesn’t work. I have used them all, including the 256 color configuration item that sets solarized. This one works. Are you a good person who knows? Please help me!

:ver

:set term?

Display term=xterm-256color

天蓬老师天蓬老师2774 days ago733

reply all(9)I'll reply

  • 迷茫

    迷茫2017-05-16 16:41:49

    I solved it myself, I set the terminal color manually

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:41:49

    Eh? Shouldn’t everyone on Mac have installed oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:41:49

    Visually, it doesn’t have much to do with vimrc.

    Try adding it in bashrc or zshrc

    # Set Solarized color
    export CLICOLOR=1
    export LSCOLORS=exfxcxdxbxegedabagacad
    

    reply
    0
  • 某草草

    某草草2017-05-16 16:41:49

    You can try iterm-2.
    A terminal under Mac can completely replace the original terminal and is very powerful.
    Then recommend this article to you.
    The Mac development configuration manual has instructions for configuring colors.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 16:41:49

    vim still needs to be configured. In addition to colorscheme solarized, I have also added the following configuration:

    vimset background=dark
    let g:solarized_termcolors=256
    let g:solarized_termtrans=1
    

    In addition, I looked through the terminal configuration and saw it
    export TERM=xterm-256color

    I’ll show you the screenshot, it’s not perfect:
    vim:

    Terminal:

    Reference link:
    Solarized colors in vim don't seem to be working for me

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 16:41:49

    I think mine is okay

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:41:49

    For the terminal, use: iTerm + oh-my-zsh, and use Railscasts theme for Vim. The effect is as follows.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:41:49

    I am looking for a solution. I have the same problem. After working on it for a long time, I added:
    set t_Co=256
    :let g:solarized_termcolors=256
    But the final look is just like this:

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:41:49

    sublime party flying high in the sky

    If you commonly use vim and it’s a mac, shouldn’t you install macvim?,,

    reply
    0
  • Cancelreply