/latex-snippets

Vim + LaTeX snippets setup

MIT LicenseMIT

Vim + LaTeX snippets setup

How I'm able to take notes in mathematics lectures using LaTeX and Vim

Vim configuration

Copy tex.snippets to ~/.vim/UltiSnips/ and asuming you're using Vim Plug, add the following to your .vimrc:

Plug 'sirver/ultisnips'
    let g:UltiSnipsExpandTrigger = '<tab>'
    let g:UltiSnipsJumpForwardTrigger = '<tab>'
    let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'

Plug 'lervag/vimtex'
    let g:tex_flavor='latex'
    let g:vimtex_view_method='zathura'
    let g:vimtex_quickfix_mode=0
    set conceallevel=1
    let g:tex_conceal='abdmg'

setlocal spell
set spelllang=en_us
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u

Something not working as expected? Feel free to open an issue!