vimrc: add function, binding for latex+bibtex

* integrates better with Vimtex
* automates working with bibtex
This commit is contained in:
surtur 2021-11-10 01:03:15 +01:00
parent 9cdf3613e1
commit 6e946f2863
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -249,7 +249,17 @@ nmap <Leader>nt :NERDTreeToggle<CR>
vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
nnoremap gb :!git blame %<CR>
nnoremap <silent> <Leader>ll :w! !pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex<CR><CR>
" ll provided by vimtex
nnoremap <silent> <Leader>kk :w! !pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex<CR><CR>
:function Pdfpls()
:echom "compiling ur tex goodness!"
:w!
:!pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex
:!bibtex $PWD/*.aux
:!pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex
:endfunction
nnoremap <silent> <Leader>lb :call Pdfpls()<cr><Esc>
nnoremap <Leader>l :exec &conceallevel ? "set conceallevel=0" : "set conceallevel=1"<CR><CR>
" toggle GitGutterLineHighlights