Comments (4)
Hi, cbaumhardt, thanks for help.
Check for more infomation about this bug at altercation/solarized#102
If you change your colorscheme frequently, the vim-colorscheme-switcher plugin is highly recommended to avoid this issue.
from neosolarized.
Thanks for your quick answer. The interesting thing to me is that this bug seems to just happen with the solarized
/NeoSolarized
colorscheme. The problem does not happen if I use other true color schemes like tender
or onedark
. I wonder if this issue could simple be fixed by changing colors/NeoSolarized.vim to be more like colors/tender.vim. It seems logical to me that this would fix the issue.
from neosolarized.
Words like set
and colorscheme
in init.vim are identify as 'vimCommand' by $NVIMRUNTIME/syntax/vim.vim.
And words in group 'vimCommand' are highlighted same color as 'Statement' by hi def link vimCommand Statement
.
Solarized specify a color(yellow) for the 'vimCommand' group, so their color are different with 'Statement' group.
Onedark or tender doesn't specify color for 'vimCommand' group, words in 'vimCommand' highlight group will render as nohighlight when you switch from solarized/NeoSolarized to onedark/tender/other-colorscheme.
As tpope said at altercation/solarized#102
From syntax/vim.vim:
hi def link vimCommand Statement
That means "unless vimCommand is already defined, link it to Statement" (see :help :hi-default). Solarized declares it to be yellow. When you switch away from Solarized, Vim resets all the highlighting. But when syntax/vim.vim is reapplied, vimCommand is already "tainted", so the highlight default no longer applies. Ergo, it's left cleared.
At least, that's my best understanding of it. Clearly it's an incomplete explanation as other groups appear fine.
Yes, this issue can fixed simply, just delete lines in vim syntax highlighting
section in colors/NeoSolarized file. But it will lose color and I won't do that.
from neosolarized.
Thanks for clarification, I misunderstood something the first time I read the linked post. I am now using xolox/vim-colorscheme-switcher as you suggested and no longer experience any problems with NeoSolarized.
from neosolarized.
Related Issues (16)
- xshell+ssh+zsh+tmux+vim HOT 2
- Current line number is highlighted yellow when both number and relativenumber are on HOT 1
- gitgutter support? HOT 3
- Backticks disappear in markdown files HOT 2
- IncSearch visibility
- urxvt issue HOT 3
- Bold font in terminal (that use ANSI escape codes 30–37) don't show up as "correct color"
- Weird dark background in vim terminal buffers HOT 3
- strange text background HOT 4
- Option to remove vertical split border
- vim-airline uses default colors HOT 2
- no text highlight HOT 1
- Does NeoSolarized support floating window colors
- Gutter highlights HOT 2
- How to remove this in vim HOT 1
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 neosolarized.