https://github.com/gillescastel/latex-snippets
Vim + LaTeX snippets setup
https://github.com/gillescastel/latex-snippets
latex python ultisnip-snippets ultisnips vim
Last synced: about 1 year ago
JSON representation
Vim + LaTeX snippets setup
- Host: GitHub
- URL: https://github.com/gillescastel/latex-snippets
- Owner: gillescastel
- License: mit
- Created: 2019-07-17T18:59:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T06:19:34.000Z (about 3 years ago)
- Last Synced: 2025-04-03T17:12:54.900Z (about 1 year ago)
- Topics: latex, python, ultisnip-snippets, ultisnips, vim
- Language: Vim Snippet
- Size: 9.77 KB
- Stars: 1,079
- Watchers: 19
- Forks: 197
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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!