AnsiEsc overwrites my ctermbg=None
Closed this issue ยท 2 comments
Hi there,
Thanks for maintaining this essential plugin for us AnsiEsc'ers ๐
Unfortunately I have an issue with my background. In three pictures:
I have
highlight Normal ctermbg=none
highlight NonText ctermbg=none
in my .vimrc
, and I suppose that this line is overriding my ctermbg
for good, leaving me with the only solution of sourcing my .vimrc
whenever I use AnsiEsc.
Am I doing something wrong? Would there be a way to tell AnsiEsc to apply the syntax rules only to the designated buffer, and leave the ctermbg
untouched in the rest of the editor?
Thank you a lot in advance!
On my system this doesn't happens, so I suppose issue may be not in AnsiEsc but in your vimrc.
I didn't have highlight
in .vimrc, instead I've moved my setup into .vim/colors/myscheme.vim
and added colorscheme myscheme
in .vimrc. Maybe this somehow helps work around this issue.
you are absolutely right, good sir. Tweaking my colour scheme a bit fixed the issue. AnsiEsc is just reapplying the syntax of my colour scheme, and rightfully skipping the ctermbg
stuff in my .vimrc
.
Thank you for enlightening me! ๐