mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 04:35:38 +00:00
11 lines
370 B
VimL
11 lines
370 B
VimL
|
" LaTeX Settings
|
||
|
"---------------
|
||
|
|
||
|
" LaTeX Hotkeys
|
||
|
autocmd FileType tex inoremap ;bf \textbf{}<Esc>i
|
||
|
" Jump to the next occurence of <> and replace it with insert mode
|
||
|
autocmd FileType tex nnoremap <Leader><Space> /<><Esc>:noh<CR>c2l
|
||
|
|
||
|
" Autocompile LaTeX on save
|
||
|
autocmd BufWritePost *.tex silent! execute "!pdflatex -output-directory=%:p:h % >/dev/null 2>&1" | redraw!
|