w0ng/vim-hybrid

A dark color scheme for Vim

1,490

stars

19

commits

Vim Script

primary language

Aug 26, 2023

updated

README

hybrid.vim

A dark colour scheme for Vim that combines the:

Updates

  • 05/01/2016: Replaced let g:hybrid_use_Xresources = 1 in favour of let g:hybrid_custom_term_colors = 1
  • 05/01/2016: Added let g:hybrid_reduced_contrast = 1

Requirements

  • gVim 7.3+ on Linux, Mac and Windows.
  • Vim 7.3+ on Linux and Mac, using a terminal that supports 256 colours.

Installation

  1. Copy colors/hybrid.vim to:

    ~/.vim/colors/hybrid.vim
    

    or alternatively, use a plugin manger such as vim-plug, NeoBundle, Vundle, or Pathogen.

  2. Add to ~/.vimrc:

    set background=dark
    colorscheme hybrid
    

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.

Linux users: rxvt-unicode, xterm

  1. Add the default palette to ~/.Xresources:

    https://gist.github.com/3278077

    palette

    or alternatively, add the reduced contrast palette to ~/.Xresources:

    https://gist.github.com/w0ng/16e33902508b4a0350ae

    palette

  2. 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
    

OSX users: iTerm

  1. Import the default colour preset into iTerm:

    https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid.itermcolors

    iterm_palette

    or alternatively, import the reduced contrast color preset into iTerm:

    https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid-reduced-contrast.itermcolors

    iterm_palette_reduced

  2. 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
    

Screenshots

Default palette on Linux

vim-help vim-python vim-markdown vim-diff vim-spell

Reduced contrast palette on OSX

vim-reduced1 vim-reduced2 vim-reduced3

Contributors

w0ng

13 commits

luan

3 commits

dolio

1 commits

w0ng/vim-hybrid

A dark color scheme for Vim

1,490

stars

19

commits

Vim Script

primary language

Aug 26, 2023

updated

README

hybrid.vim

A dark colour scheme for Vim that combines the:

Updates

  • 05/01/2016: Replaced let g:hybrid_use_Xresources = 1 in favour of let g:hybrid_custom_term_colors = 1
  • 05/01/2016: Added let g:hybrid_reduced_contrast = 1

Requirements

  • gVim 7.3+ on Linux, Mac and Windows.
  • Vim 7.3+ on Linux and Mac, using a terminal that supports 256 colours.

Installation

  1. Copy colors/hybrid.vim to:

    ~/.vim/colors/hybrid.vim
    

    or alternatively, use a plugin manger such as vim-plug, NeoBundle, Vundle, or Pathogen.

  2. Add to ~/.vimrc:

    set background=dark
    colorscheme hybrid
    

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.

Linux users: rxvt-unicode, xterm

  1. Add the default palette to ~/.Xresources:

    https://gist.github.com/3278077

    palette

    or alternatively, add the reduced contrast palette to ~/.Xresources:

    https://gist.github.com/w0ng/16e33902508b4a0350ae

    palette

  2. 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
    

OSX users: iTerm

  1. Import the default colour preset into iTerm:

    https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid.itermcolors

    iterm_palette

    or alternatively, import the reduced contrast color preset into iTerm:

    https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid-reduced-contrast.itermcolors

    iterm_palette_reduced

  2. 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
    

Screenshots

Default palette on Linux

vim-help vim-python vim-markdown vim-diff vim-spell

Reduced contrast palette on OSX

vim-reduced1 vim-reduced2 vim-reduced3

Contributors

w0ng

13 commits

luan

3 commits

dolio

1 commits

Languages

Vim Script

100.0%