Giter VIP home page Giter VIP logo

Comments (10)

simonsmith avatar simonsmith commented on July 25, 2024

Do you mean you struggle to see it in Insert mode? I'm not having that difficulty in either Vim or Neovim in iTerm (tmux).

What Vim version and terminal do you use?

from onedark.vim.

rumpelsepp avatar rumpelsepp commented on July 25, 2024

Terminal: termite
neovim, latest

Yes, I do. The cursor changes its color depending on which snippet it is placed. When I am in insert mode and no character is under my cursor, I can hardly see it. It is grey on grey.

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Can you post a screenshot please (with some other code open so I can see the rest of the colors?)

from onedark.vim.

rumpelsepp avatar rumpelsepp commented on July 25, 2024

Yes. I am in the subway right now. Will send it tonight.

from onedark.vim.

rumpelsepp avatar rumpelsepp commented on July 25, 2024

screenshot-2016-10-05-00 43 05
screenshot-2016-10-05-00 43 53

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

The screenshot was helpful; I was able to reproduce this in termite even when X-forwarded to a Mac.

This doesn't have to do with the theme but instead seems to be an idiosyncrasy of termite. Termite appears to be changing the cursor color to the foreground color of whatever character appears underneath it.

One solution I figured out is to not use list/invisibles in Vim; if characters with that color never show up in Vim, the cursor won't change to that color.

A much better solution is to set an explicit cursor color in your ~/.config/termite/config, for example, cursor = #ABB2C0. Termite seems to stop dynamically "absorbing" cursor colors if a cursor color is explicitly set in the configuration.

I hope that helps!

from onedark.vim.

rumpelsepp avatar rumpelsepp commented on July 25, 2024

Thanks for your answer!

One solution I figured out is to not use list/invisibles in Vim; if characters with that color never show up in Vim, the cursor won't change to that color.

That's not a solution for me, as I always need to fix whitespace errors when working with other people to avoid silly errors...

A much better solution is to set an explicit cursor color in your ~/.config/termite/config, for example, cursor = #ABB2C0. Termite seems to stop dynamically "absorbing" cursor colors if a cursor color is explicitly set in the configuration.

That would be the preferable solution. Unfortunately it does not seem to work an my machine the same way. Setting the cursor color explicitely does not prevent "dynamically "absorbing" cursor colors" here... 💫 Which version of termite are you using?

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

I'm using termite v11. Here's my entire termite config:

[options]

clickable_url = true
font = DejaVu Sans Mono 9

[colors]

# special
foreground = #ABB2C0
background = #282C34
cursor = #ABB2C0

# black
color0 = #282C34
color8 = #3E4452

# red
color1 = #E26B73
color9 = #C04F43

# green
color2 = #97C475
color10 = #97C475

# yellow
color3 = #E6C176
color11 = #D29B62

# blue
color4 = #5DAEF2
color12 = #5DAEF2

# magenta
color5 = #C775DF
color13 = #C775DF

# cyan
color6 = #51B6C3
color14 = #51B6C3

# white
color7 = #ABB2C0
color15 = #5C6670

from onedark.vim.

rumpelsepp avatar rumpelsepp commented on July 25, 2024

Thanks! Got it. It seems, that termite did not source the config file properly. I first had to kill all instances... Anyway, I am not very happy with the result as a static cursor color does not ensure that every color under the cursor is readable. There are colors that are ok, and there are colors that are hardly visible when overlayed with light gray.

I also tried gnome-terminal, which is also a vte terminal. Surprise, surprise, it behaves the same as termite. Is there some setting, so that I can change the color of the invisibles locally on my machine? That would work for me, I guess.

from onedark.vim.

joshdick avatar joshdick commented on July 25, 2024

Okay, glad you figured it out.

You can add a line like:

hi SpecialKey guifg=#5C6370 ctermfg=59

at the end of your Vim configuration.

This way, you can tweak the full (hex) color and/or 256-color settings to your liking.

from onedark.vim.

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.