Open allopislozano opened 2 years ago
Try this code snippet:
autocmd vimenter * ++nested colorscheme gruvbox
set termguicolors
set background=dark
From the VIM documentation about vimenter
:
After doing all the startup stuff, including loading .vimrc files,
executing the "-c cmd" arguments, creating all windows and
loading the buffers in them.
Another important information is the client you're using as well as the operating system.
Thanks for the idea @christianrickert , this works: autocmd VimEnter * set bg=dark
That's a great improvement already, however I'd like to keep the issue open in case this can be fixed without the need to call that command each time that a file is open
This is my environment. My OS is red hat linux
I'm glad it worked (a bit) @allopislozano
Hello!
I have this code in my after plugins script: .vim/after/plugin/setColors.vim:
This works perfectly in console mode, but in gui mode I do not get the dark background, in fact set bg? returns light
What can be happening?