Skip to content
Vim + LaTeX snippets setup
Branch: master
Clone or download
Latest commit a3c21f9 Jul 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Jul 17, 2019 Initial commit Jul 17, 2019
tex.snippets Initial commit Jul 17, 2019

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!

You can’t perform that action at this time.