Open thomasdalb opened 3 years ago
The problem is that when you put that in your vimrc, it gets executed in a context where there is no file open yet, so it has no effect.
Thus, the solution is to remove the background when you open a tex file. Add this line to your vimrc:
autocmd FileType tex hi Conceal ctermbg=NONE
The problem is that when you put that in your vimrc, it gets executed in a context where there is no file open yet, so it has no effect.
Thus, the solution is to remove the background when you open a tex file. Add this line to your vimrc:
autocmd FileType tex hi Conceal ctermbg=NONE
Oh thanks a whole lot, I am a very beginner and this worked for me, I had the similar problem, it made the source look so ugly! Now it's perfect, thank you!
For me autocmd FileType tex hi clear conceal
works
I can't remove the background of the replacement text using conceal (which is grey). In particular, I tried adding
hi clear conceal
to the end of vimrc, vimrc.local and also in a .vim/after/tex.vim file but it never work. I also tried addinghi Conceal ctermbg=NONE
hi Conceal ctermfg=NONE
hi Conceal guifg=NONE
hi Conceal guibg=NONE
instead ofhi clear conceal
but still it doesn't work.However, if I type
:hi clear conceal
in a tex file opened in vim it work.my vimrc.local file is:
1 set number
2 call plug#begin('~/.vim/plugged')
3 Plug 'lervag/vimtex'
4 Plug 'KeitaNakamura/tex-conceal.vim', {'for': 'tex'}
5 call plug#end()
6 let g:tex_flavor='latex'
7 let g:vimtex_view_method='zathura'
8 let g:vimtex_quickfix_mode=0
9 let g:tex_superscripts= "[0-9a-zA-W.,:;+-<>/()=]"
10 let g:tex_subscripts= "[0-9aehijklmnoprstuvx,+-/().]"
11 let g:tex_conceal_frac=0
12 set conceallevel=2
13 let g:tex_conceal='abdmg'