Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gillescastel/latex-snippets

Vim + LaTeX snippets setup
https://github.com/gillescastel/latex-snippets

latex python ultisnip-snippets ultisnips vim

Last synced: 25 days ago
JSON representation

Vim + LaTeX snippets setup

Awesome Lists containing this project

README

        

# Vim + LaTeX snippets setup

*[How I'm able to take notes in mathematics lectures using LaTeX and Vim](https://castel.dev/post/lecture-notes-1/)*

## Vim configuration

Copy `tex.snippets` to `~/.vim/UltiSnips/` and assuming you're using [Vim Plug](https://github.com/junegunn/vim-plug), add the following to your `.vimrc`:

```vim
Plug 'sirver/ultisnips'
let g:UltiSnipsExpandTrigger = ''
let g:UltiSnipsJumpForwardTrigger = ''
let g:UltiSnipsJumpBackwardTrigger = ''

Plug 'lervag/vimtex'
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=0

Plug 'KeitaNakamura/tex-conceal.vim'
set conceallevel=1
let g:tex_conceal='abdmg'
hi Conceal ctermbg=none

setlocal spell
set spelllang=en_us
inoremap u[s1z=`]au
```

For the colorscheme, install [pywal](https://github.com/dylanaraps/pywal), add the following to your `.vimrc`

```vim
Plug 'dylanaraps/wal'
colorscheme wal
set background=dark
```

Finally, execute `wal --theme base16-nord`.

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