-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocmd background resets colorscheme to default #2
Comments
What's the output of Vim or Neovim? I see that you use |
Both in vim and neovim i get
You are talking about this snippet?
I know it executes the it is really weird and even if I do
without the fancy try-catch stuff the colorscheme is still set to |
Actually I think you're hitting one of the many highlighting bugs of Vim. In your case it gets triggered by setting Doesn't work: colorscheme janah
autocmd ColorScheme janah highlight Normal ctermbg=235
set background=dark Does work: colorscheme janah
set background=dark
autocmd ColorScheme janah highlight Normal ctermbg=235 There's no way I can fix this from the colorscheme itself, but I could add a note to the README. My suggestion it to simply do all the colorscheme stuff after setting options in your vimrc. Reference: altercation/solarized#102 |
That fixed it! Thanks for helping me and thanks for creating this awesome colorscheme! |
I use vim in a terminal emulator and as suggested in the readme I have this in my vimrc
One problem though, it sets the background correctly but it resets the colorscheme to the default colorscheme.
If i do
:colorscheme janah
it works properly though.Any idea why and how to fix it?
The text was updated successfully, but these errors were encountered: