this is an update of vim-hybrid, a fantastic theme from Andrew Wong. his description, from the original repo:
A dark colour scheme for Vim that combines the:
- Default palette from Tomorrow-Night.
- Reduced contrast palette from Codecademy's online editor.
- Syntax group highlighting scheme from Jellybeans
- Vimscript from Solarized
the original requirements:
- gVim 7.3+ on Linux, Mac and Windows.
- Vim 7.3+ on Linux and Mac, using a terminal that supports 256 colours.
to make the best of my tweaks:
- a terminal that supports 256 colors, as well as italics.
- WSL/Windows: i haven't tested it on any terminal besides wsltty, aka mintty running wsl-bridge.
-
Copy colors/hybrid.vim to:
~/.vim/colors/hybrid.vim
or alternatively, use a plugin manger such as vim-plug, NeoBundle, Vundle, or Pathogen.
-
Add to ~/.vimrc:
set background=dark colorscheme hybrid
-
(Alternate) If using SpaceVim:
add the following to your
init.toml
orinit.vim
:[[custom_plugins]] name = "jeromescuggs/vim-hybrid"
restart vim, and let SpaceVim download and install the theme. restart SpaceVim, and either load it manually:
:colorscheme hybrid
or set it as the default in
init.toml
/init.vim
:colorscheme = "vim-hybrid"
the following is from the original README. although I do not need to do anything further after installation, the following might be useful for troubleshooting.
Due to the limited 256 palette, colours in Vim and gVim will still be slightly different.
In order to have Vim use the same colours as gVim (the way this colour scheme is intended) define the basic 16 colours in your terminal.
-
Add the default palette to ~/.Xresources:
https://gist.github.com/3278077
or alternatively, add the reduced contrast palette to ~/.Xresources:
-
Add to ~/.vimrc:
let g:hybrid_custom_term_colors = 1 let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette. colorscheme hybrid
-
Import the default colour preset into iTerm:
https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid.itermcolors
or alternatively, import the reduced contrast color preset into iTerm:
https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid-reduced-contrast.itermcolors
-
Add to ~/.vimrc:
let g:hybrid_custom_term_colors = 1 let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette. colorscheme hybrid