junegunn / seoul256.vim

:deciduous_tree: Low-contrast Vim color scheme based on Seoul Colors
1.65k stars 123 forks source link

zsh theme #48

Open yhcao6 opened 6 years ago

yhcao6 commented 6 years ago

Can I ask if there is a theme for zsh? when I load the theme in zsh and open vim, I found the color is different from the screenshot? Here is my screenshot:

2018-01-09 10 38 08
ghost commented 6 years ago

The default vim colorscheme uses cterm colors which roughly configures vim to look like seoul256. You'll need to make vim use the gui colorscheme:

set termguicolors
lunacookies commented 5 years ago

Note that the colours in seoul256 originally fit into the terminal 256 colour palette, but then iTerm changed the way it rendered colours (it actually changed to how almost all other terminals do it), making it display the colours on the 256 palette too dark. This means that you need to use hex colours to get Vim to display the ‘correct’ colours (which means that the original 256 colours are only available in old versions of iTerm). This is achievable through two methods:

  1. set termguicolors, as @yiyangc91 mentioned, tells Vim to attempt to display hex colours in the terminal (this is not necessary for a GUI, like MacVim). Some terminals do not have this ability, most notably Terminal.app (which seems to be the one @yhcao6 is using in the screenshot)

  2. Using a GUI, e.g. MacVim

All this means that you cannot display seoul256 as it was intended in any terminal that does not support termguicolors.

This topic has already been discussed in #50 and #32