-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Set terminal colors in Vim with termguicolors #282
base: master
Are you sure you want to change the base?
Conversation
When the termguicolors setting is enabled, default ANSI colors are used by default in Vim. Colors can be set similarly to neovim.
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. |
@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. |
My bad, I did not see that new commits were recently added. Good to see commits on the original codebase. |
I'd rather say spare time activity maintainment 😉 |
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