Comments (10)
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.
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.
Can you post a screenshot please (with some other code open so I can see the rest of the colors?)
from onedark.vim.
Yes. I am in the subway right now. Will send it tonight.
from onedark.vim.
from onedark.vim.
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.
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.
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.
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.
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)
- How do I change the selected line color? HOT 5
- `onedark#extend_highlight` doesn't extend `cterm` options HOT 2
- Syntaxt highilighting for keywords in comments
- Conflict with itchyny/vim-cursorword HOT 4
- Weird behavior with modified file name's color in airline by opening .vim files HOT 1
- Support for lualine
- Illegible diffs HOT 1
- Add symbol highlighting for Neovim LSP
- Add CocMenuSel HOT 1
- visualbell stops working when using onedark
- Background transparent HOT 3
- Warning sign from ALE has wrong color HOT 1
- Override colors in lua (neovim)
- feat: Switchable transparent background ?
- Leave my &t_Co alone.
- Abunch of errors HOT 1
- Add support for command mode for lightline.vim
- Troubles with Tmux+Vim after tmux redraw
- [Feature Request] Add better UI for `vim.lsp.buf.rename()` function.
- Bug: Scheme not working correctly after upgrading neovim 0.9.5 to 0.10.0 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedark.vim.