Closed Freed-Wu closed 3 years ago
Thank you for the bug report!
Interestingly I can reproduce it only if I have g:rcsv_colorpairs
customization var initialized. Also adding the colorscheme
autocmd as you suggested didn't resolve the issue, I also had to add vimenter
autocmd, sometimes Vim is just weird. But in the end, it worked, see my latest patch. BTW why are you using autocmd VimEnter * colorscheme default
and not just colorscheme default
?
I have tested your patch and it really solves this bug. Thanks for your effort!
About autocmd VimEnter
, this is because in fact, I colorscheme default
after vi -u test.vim a.csv
, then the color of csv disappears. So I copy this line to test.vim
by adding autocmd VimEnter
to ensure colorscheme default
in correct time.
The color will disappear.
I guess it maybe should add some code like
Thanks!