This plugin extends the Conceal feature of Vim for LaTeX.
Plugin 'KeitaNakamura/tex-conceal.vim' " for Vundle
Plug 'KeitaNakamura/tex-conceal.vim', {'for': 'tex'} " for VimPlug
vimtex had used its own conceal feature from v2. Those changes break this plugin for now. So you should choose vimtex v2 or the latest version 1.6 that tex-conceal works.
Plug 'lervag/vimtex', {'tag': 'v1.6'}
To avoid having inscrutable utf-8 glyphs appear, set g:tex_superscripts
and g:tex_subscripts
:
let g:tex_superscripts= "[0-9a-zA-W.,:;+-<>/()=]"
let g:tex_subscripts= "[0-9aehijklmnoprstuvx,+-/().]"
See :h tex-conceal
in more detail.
To conceal fraction (½⅓⅔¼⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞)
let g:tex_conceal_frac=1
set conceallevel=2
let g:tex_conceal="abdgm"