w0ng / vim-hybrid Goto Github PK
View Code? Open in Web Editor NEWA dark color scheme for Vim
A dark color scheme for Vim
How do I install it via vundle.
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?
Out of curiosity, what's your cursorColor
value in .Xresources
?
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.
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.
So true color support recently landed in Neovim neovim/neovim#2198. But it seems like hybrid gets a bit confused by this (see screenshot).
It get solved by reloading the colorscheme though, or defining the gui*
values.
I guess there's two ways to approach this:
$NVIM_TUI_ENABLE_TRUE_COLOR && has("nvim")
as has("gui_running")
.gui
and cterm
).The iTerm2 color preset provided does not match the Xresources color scheme. I recreated the Xresources one in iTerm2, available here.
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
.
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
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.
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.
I'm using rxvt-unicode-256 and
set hlsearch
set t_Co=256
let g:hybrid_use_Xresources = 0
colorscheme hybrid
Can you create a colorscheme for the xfce-terminal ?
When I edited *.pyx files, there was an error information like No such highlight group name: pythonInclude
. Please help to fix it. Thanks very much!
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
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!
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.
Can you please do a theme for oh-my-zsh (: Or recomend one that's similar to the terminal colors you recomend us to set.
https://github.com/robbyrussell/oh-my-zsh/wiki/themes
Ty a lot !!! You're color and you are awesome q=
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!
Do you know what highlight group that is?
For example, this issue illustrates exactly what I mean: trusktr/seti.vim#5
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.
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 ;)
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).
If I comment the let g:hybrid_use_Xresources = 1
, it looks closer to the gvim version:
But the background looks a bit weird, like blurry? What could be the issue?
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.
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.
This is how a js code sample looks:
This is good, but still uncomparable to screenshots mentioned.
Appreciate any help :)
added a comment here: https://gist.github.com/luan/6362811#comment-999990
looks like there are a few colors that are set incorrectly
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?
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?
Hey, @w0ng thanks for your work. I'm loving your colors!
How about making it part of https://github.com/chriskempson/base16-vim and https://github.com/chriskempson/base16-iterm2 ?
Cheers
I am using xshell 5.0 from NetSarang.
My LinuxBox is Debian GNU/Linux 8 (jessie) x86_64
vim version is VIM - Vi IMproved 7.4,
'hybrid' is install by https://github.com/kepbod/ivim
Hybrid works fine in xshell but it can't show correctly in tmux environment.
The screenshot URLs in the README are broken
Hey! Would it be possible to add an option for italic comments and HTML attributes?
Thanks.
After adding the stuff to ~/.Xresources like it says in the README, everytime I exit vim I see this message:
Warning: Color name "t_background" is not defined
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.