/tex-conceal.vim

Primary LanguageVim ScriptMIT LicenseMIT

tex-conceal.vim

This plugin extends the Conceal feature of Vim for LaTeX.

Without conceal

With conceal

With conceal and this plugin

Output

Installation

Plugin 'KeitaNakamura/tex-conceal.vim'                 " for Vundle
Plug   'KeitaNakamura/tex-conceal.vim', {'for': 'tex'} " for VimPlug

Options

Super/sub-scrips

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.

Fraction

To conceal fraction (½⅓⅔¼⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞)

let g:tex_conceal_frac=1

Recommended settings

set conceallevel=2
let g:tex_conceal="abdgm"