Set terminal colors in Vim with termguicolors#282
Open
rbong wants to merge 1 commit into
Open
Conversation
When the termguicolors setting is enabled, default ANSI colors are used by default in Vim. Colors can be set similarly to neovim.
Author
fe59ccf to
052c55b
Compare
|
So, what happened? Why the code is gone? It's very ugly when using vim build-in terminal at now. if exists('*term_setansicolors')
let g:terminal_ansi_colors = repeat([0], 16)
let g:terminal_ansi_colors[0] = s:bg0[0]
let g:terminal_ansi_colors[8] = s:gray[0]
let g:terminal_ansi_colors[1] = s:gb.neutral_red[0]
let g:terminal_ansi_colors[9] = s:red[0]
let g:terminal_ansi_colors[2] = s:gb.neutral_green[0]
let g:terminal_ansi_colors[10] = s:green[0]
let g:terminal_ansi_colors[3] = s:gb.neutral_yellow[0]
let g:terminal_ansi_colors[11] = s:yellow[0]
let g:terminal_ansi_colors[4] = s:gb.neutral_blue[0]
let g:terminal_ansi_colors[12] = s:blue[0]
let g:terminal_ansi_colors[5] = s:gb.neutral_purple[0]
let g:terminal_ansi_colors[13] = s:purple[0]
let g:terminal_ansi_colors[6] = s:gb.neutral_aqua[0]
let g:terminal_ansi_colors[14] = s:aqua[0]
let g:terminal_ansi_colors[7] = s:fg4[0]
let g:terminal_ansi_colors[15] = s:fg1[0]
endif |
|
Oh, my bad. I didn't notice it not merged in to this repo. |
Author
|
@PetrusZ gruvbox is no longer actively maintained. Try out this fork which has the majority of the current pull requests merged and issues resolved: https://github.com/gruvbox-community/gruvbox |
|
@rbong gruvbox seems to become actively again, but I'll try gruvbox-community/gruvbox. Thank you. |
Author
|
My bad, I did not see that new commits were recently added. Good to see commits on the original codebase. |
Owner
|
I'd rather say spare time activity maintainment 😉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the termguicolors setting is enabled, default ANSI colors are used by default in Vim.
Colors can be set in Vim similarly to neovim as of this merged PR:
vim/vim#2747
See this issue for more context:
vim/vim#2353