Git Product home page Git Product logo

Comments (5)

JLL32 avatar JLL32 commented on May 26, 2024 2

This happens when using the default vim in macOS.
Install vim using homebrew brew install vim, this should solve your problem.

from onehalf.

bunnyfly avatar bunnyfly commented on May 26, 2024

@ergusto did you close this because you figured it out or because you gave up on it? I am having the same issue. 256 color is enabled. Other color schemes render fine.

I'm using iTerm2 3.3.0, Tmux 2.9a, neovim 0.3.7. (Also tested with vim 8.0 and not using Tmux, but that still gives the same result.)

image

from onehalf.

ergusto avatar ergusto commented on May 26, 2024

@bunnyfly Because I gave up, unfortunately. I tried messing around with it a bit more but couldn't get it looking right, and the sort of off-black background just really ruined the aesthetic for me. I moved onto https://github.com/sainnhe/vim-color-atlantis which I've been using for a while now and I am very happy with it.

from onehalf.

bunnyfly avatar bunnyfly commented on May 26, 2024

from onehalf.

sonph avatar sonph commented on May 26, 2024

Ya the screenshot looks like its background color is the default 256 color fallback.

In https://github.com/sonph/onehalf/blob/master/vim/colors/onehalfdark.vim I set

let s:black       = { "gui": "#282c34", "cterm": "236" }

And cterm=236 corresponds to 303030 which is a gray color, instead of the blue-ish gui color: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg

I'm not sure what's the current support for true colors in vim, but you should be able to check with

:echo has("termguicolors")

returning 1.

There are plenty of guides on the Internet about true colors in vim. Hope anyone encountering this problem will be able to get your setup working. I have some basic instructions in https://github.com/sonph/onehalf/blob/master/vim/README.md

from onehalf.

Related Issues (20)

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.