Code Monkey home page Code Monkey logo

Comments (4)

overcache avatar overcache commented on June 18, 2024

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.

 avatar commented on June 18, 2024

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.

overcache avatar overcache commented on June 18, 2024

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.

 avatar commented on June 18, 2024

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)

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.