vimrc: add function, binding for latex+bibtex
* integrates better with Vimtex * automates working with bibtex
This commit is contained in:
parent
9cdf3613e1
commit
6e946f2863
12
.vim/vimrc
12
.vim/vimrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user