Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix #22: 'hi Normal ctermbg=234' sets background=light #26

Merged
merged 1 commit into from
Apr 12, 2014

Conversation

justinmk
Copy link
Contributor

@justinmk justinmk commented Dec 6, 2013

ugly hack to prevent background=light

update: a redditor suggested a better fix, which is to simply move the set bg statement to the bottom of the syntax file. I've updated the pull request.

@justinmk
Copy link
Contributor Author

justinmk commented Dec 7, 2013

@tomasr anything causing hesitation on this?

@mathiasbynens
Copy link
Contributor

👍

@aaronjensen
Copy link
Contributor

seems good, though it's 3 space tabs, not 2.

@justinmk
Copy link
Contributor Author

justinmk commented Mar 1, 2014

Oh, right. Happy to correct that if @tomasr gives some indication of intent to merge.

BTW, this is a known issue with Vim's color detection, for which a patch was suggested:

https://groups.google.com/forum/#!searchin/vim_dev/color%7Csort:date/vim_dev/afPqwAFNdrU/VYYAwC5AfhkJ

@aaronjensen
Copy link
Contributor

That said, I couldn't find any visual reason to use this patch. If I followed the readme and called set background=dark afterwards it looked totally wrong. This didn't have that issue, but it looked the same as it normally does. Am I missing something?

@justinmk
Copy link
Contributor Author

justinmk commented Mar 1, 2014

what terminal are you using? Did you try running without plugins? vim -u NONE -N, then :source molokai.vim and :syntax on.

I tried with/without this patch in Mac OS Terminal.app, and the result seems to be identical, except &background=dark is correctly set with this patch.

The motivation for this patch is that some plugins or autocmds may make decisions based on &background.

@aaronjensen
Copy link
Contributor

gotcha. That makes sense. Thanks for the explanation.

```
let g:rehash256 = 1
```

Note: when using the console version, add this command after enabling the colorscheme in your .vimrc:
```
set background=dark
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary after this patch

@justinmk
Copy link
Contributor Author

@tomasr I updated this pull request with a much simpler fix. Care to comment?

tomasr added a commit that referenced this pull request Apr 12, 2014
fix #22: 'hi Normal ctermbg=234' sets background=light
@tomasr tomasr merged commit 28a4040 into tomasr:master Apr 12, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants