GithubHelp home page GithubHelp logo

vim-hybrid's Introduction

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

Define custom terminal colours (recommended)

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

vim-hybrid's People

Contributors

blue-dog-archolite avatar dolio avatar luan avatar trcjr avatar w0ng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-hybrid's Issues

Can't get italics working with this color scheme

My terminal etc is configured properly for italics. Don't have any problem getting italics working with any other theme.

I tried putting the following in my .vimrc after the color scheme gets loaded

highlight Comment cterm=italic

Doesn't seem to work. Any pointers?

Cursor color

Out of curiosity, what's your cursorColor value in .Xresources?

Make a bright version

The colorscheme is nice, but sometimes I found it is too low constrast. A version with a more bright background may be a nice choice. Just like Tomorrow-Night-Bright than Tomorrow-Night. :D

Reduced Colours iTerm profile does not work

Attempting to apply the reduced colours iTerm profile doesn't appear to work. I haven't received an error, but if you set the theme to 'light', then try to apply the reduced contrast profile, no change is made. The standard hybrid profile works fine.

iTerm v2.1.4
OSX 10.11.4

syntax on not work in vim9

Hi, I has just used hybrid in my vim9, it seemed to be working, but all colors in py or go file disappeared..., i put syntax on in command line or in .vimrc file, but all of the did not work.
where was the wrong with my setting.
centos8, vim9 compiled from source code.

This is my favorite theme

Of all time, it is quite the hidden gem.

My one question is, how do I change the gutter line number color? (not the background)

I'd like it to be the same color as the comments. Thanks!

reduced contrast works but manually

In simple words, I have to resource my config file at each vim opening to apply the reduced contrast.

Working with nvim under iTerm with hybrid-reduced-contrast color preset.

This is my nvim settings regarding hybrid:

set background=dark
colorscheme hybrid
let g:hybrid_custom_term_colors = 1
let g:hybrid_reduced_contrast = 1

But, I much thank you for the job. It's really relaxing to develop with hybrid.

Reopen neovim, hybrid is invalid

Hi, I am a gopher When I finish writing the code: w save it will highlight my method name,But when I reopen neovim, I found that the highlight of the method name has failed.you can see these pics。
After:w
1
Reopen neovim,you can found the highlight of the method name has failed,how to fix it
2

Some sort of distortion!

I don't understand how this is happening! I did all that was mentioned in the readme and I am getting such sort of a distortion! Any idea?

Search-highlighted characters become unreadable when a vertical line is over them.

Whenever a highlighted, due to hlsearch, character is overlapping with the cursorcolumn or colorcolumn colum, both its foreground and background are darkened. This only happens for characters not in the same line as my cursor.

hybrid

I'm using rxvt-unicode-256 and

set hlsearch
set t_Co=256
let g:hybrid_use_Xresources = 0
colorscheme hybrid

`set t_Co=256` needed for terminal

I'm not sure why, but I have to run the command :set t_Co=256 for the hybrid colorscheme to work in my terminal (Ubuntu, GNOME-terminal). Should that be added to the README?

Does it have true color support ?

First of all, the theme looks stunningly beautiful. Great work 🎊
Does this theme supports true colors yet ?

I'm using VIM 8 version 8.0.60 with tmux 2.3
Using these config to obtain true colors:

=>tmux

# Add 256 color support
set-option -ga terminal-overrides ",xterm-256color:Tc"

=>Minimal Vimrc

set background=dark
set termguicolors
colorscheme hybrid
let g:hybrid_reduced_contrast = 1

=> OS: Mac OSX Sierra
I followed this for hybrid theme:
https://github.com/w0ng/vim-hybrid#osx-users-iterm

I'm using iterm3.1.beta.5 with hybrid-reduced-pallet
I want to achieve the same UI as mentioned in screenshots for Reduced contrast palette hybrid.

Screenshots

This is how a js code sample looks:
screen shot 2017-07-16 at 1 00 47 am
This is good, but still uncomparable to screenshots mentioned.

Appreciate any help :)

Are Identifiers/variable not highlighted anymore?

See screenshot.
My code (on the right hand side in the screenshot) is regular JS script. I expected styleSheet and cssSelector to be coloured according to the Identifier line in the default palette (on the left in the screenshot).
Even in something like var i = 0; the variable i is plain white.

vim-hybrid-color-scheme-identifiers-not-highlighted

Can we get working screenshots in the README?

The links at the bottom of the README are currently kaput; moreover, for a colorscheme, screenshots should really be at the top of the document, embedded rather than hyperlinked.

With @w0ng's approval, I'd be glad to submit a PR myself, but of course I'm reluctant to put in the effort if the project is no longer maintained.

I also have colorschemes for Terminal.app and alacritty that could be added to the README, if that's kosher.

Doesn't load properly when using true color in Neovim

So true color support recently landed in Neovim neovim/neovim#2198. But it seems like hybrid gets a bit confused by this (see screenshot).

screen shot 2015-03-22 at 17 59 10

It get solved by reloading the colorscheme though, or defining the gui* values.

screen shot 2015-03-22 at 17 58 52

I guess there's two ways to approach this:

  • Treat $NVIM_TUI_ENABLE_TRUE_COLOR && has("nvim") as has("gui_running").
  • Always define both "vmodes" (gui and cterm).

escaped chars in string syntax highlighting

Hello, i've noticed in the dark colorscheme whenever there's escaped chars in a string the escaped chars aren't highlighted differently.

e.g. "hello\n", the '\n' isn't highlighted differently. same for entering hex.

I've loaded hybrid-light, and escaped chars stand out from the rest of the string.
Running on Debian Linux. Tried this on both vim running on xterm and gvim.

Html errors are nearly invisible with "set cursorline"

If you have an html file with an extra '>' that symbol (closes a tag that's never opened) is nearly invisible. The html syntax thinks its an error and errors are fg_background on bg_red, but with cursorline is invisible.
This is particularly bad if you're using sparkup or zencoding which uses the ">" symbol a lot.

I changed this line:
exe "hi! Error" .s:fg_background .s:bg_red .s:fmt_none

to:
exe "hi! Error" .s:fg_red .s:bg_background .s:fmt_none

and that solved the issue, but I don't know how this will look when editing other filetypes.

Reopen Bug #3

Hi, can you please re-open bug #3 and close this one?

I was busy with school, but I have free time during summer break now.

VimDiff doesn't work

I liked all of this colorscheme, except its DiffAdd and DiffChange!
I can't complete see what has changed and added... 😕
Do you have any idea how to modify?

hybrid-diff-bug

About My Environment:
Arch Linux
Vim: 7.4.622
Terminal: mate-terminal 1.8.1

Changing Normal highlight color sets background back to light. How to prevent?

When I try

highlight Normal ctermfg=250 ctermbg=233 guifg=#c5c8c6 guibg=#1d1f21

this seems to set background to light and completely changes what I intended to change.

How do I prevent this? I just want to make Hybrid's background slightly darker (from 234 to 233) in my vimrc, and stay in background=dark mode.

Error in haskell syntax in terminal vim

I'm using the colorscheme, and using xresources (top, is hybrid in gvim, second is hybrid on terminal, and the third one is terminal jellybeans).

comparison_vim_hybrid_hs_file

If I comment the let g:hybrid_use_Xresources = 1, it looks closer to the gvim version:

comparison_vim_hybrid_hs_file_no_xresources

But the background looks a bit weird, like blurry? What could be the issue?

console2 colors

If anyone is interested on this colorscheme on console 2 (windows mostly) here it is:

		<colors>
			<color  id="0" r="45" g="60" b="70"/>
			<color  id="1" r="165" g="66" b="66"/>
			<color  id="2" r="140" g="148" b="64"/>
			<color  id="3" r="222" g="147" b="95"/>
			<color  id="4" r="95" g="129" b="157"/>
			<color  id="5" r="133" g="103" b="143"/>
			<color  id="6" r="94" g="141" b="135"/>
			<color  id="7" r="108" g="122" b="128"/>
			<color  id="8" r="66" g="80" b="89"/>
			<color  id="9" r="204" g="102" b="102"/>
			<color id="10" r="181" g="189" b="104"/>
			<color id="11" r="240" g="198" b="116"/>
			<color id="12" r="129" g="162" b="190"/>
			<color id="13" r="178" g="148" b="187"/>
			<color id="14" r="138" g="190" b="183"/>
			<color id="15" r="197" g="200" b="198"/>
		</colors>

Also, It would be interesting if you could promote this over the readme section @w0ng

kind regards,

P.S. Windows sucks, I'm forced to use windows and I've read console2 is the best terminal for it, that's why I'm not using either xresources nor iterm2; any other better consoles for windows suggestions are welcome ;)

MatchParen seems wrong

I use hybrid dark in the terminal with 256 colors. The MatchParen setting seems a bit wrong to me:

exe "hi! MatchParen" .s:fg_background .s:bg_changebg .s:fmt_none

should be:

exe "hi! MatchParen" .s:fg_foreground .s:bg_changebg .s:fmt_none

Because with fg_background the actual position is darker than the matching position and it looks like the cursor jumped to the other parenthesis. fg_foreground works as expected.

Screenshot font?

Hi, just wondering what font you're using in the README screenshots? The non-antialiased one. I'm guessing maybe Terminus? Thanks, love the theme!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.