Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gillescastel/latex-snippets
Vim + LaTeX snippets setup
https://github.com/gillescastel/latex-snippets
latex python ultisnip-snippets ultisnips vim
Last synced: 7 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T06:19:34.000Z (over 1 year ago)
- Last Synced: 2024-12-08T22:04:07.013Z (14 days ago)
- Topics: latex, python, ultisnip-snippets, ultisnips, vim
- Language: Vim Snippet
- Size: 9.77 KB
- Stars: 1,053
- Watchers: 20
- Forks: 201
- 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=0Plug 'KeitaNakamura/tex-conceal.vim'
set conceallevel=1
let g:tex_conceal='abdmg'
hi Conceal ctermbg=nonesetlocal 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!