Search code examples
macosvimterminaliterm2

In vim, syntax color of terminal and iterm are different


I'm new in vim setting T__T.

in terminal in iterm2

left is terminal display.

right is iterm2 display.

how to change the color in terminal to be like in iterm2

Thanks in advance.


Solution

  • Some vim colorschemes, including the default, take the terminal's color palette as default color values. However, if you use a colorscheme with full 256 color support, I believe there's a 256 colorscheme for the default as well, the issue disappears.

    Here's a photo with desert (non-256) as a colorscheme between iTerm and Terminal: 1

    And here's a photo with jellybeans (256): 2