vimrc: add latex-compiling funcs/maps
This commit is contained in:
parent
928ad83ad5
commit
d3e69e7311
47
.vim/vimrc
47
.vim/vimrc
@ -548,20 +548,47 @@ nnoremap <F8> :TagbarToggle<CR>
|
|||||||
vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
|
vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
|
||||||
nnoremap gb :!git blame %<CR>
|
nnoremap gb :!git blame %<CR>
|
||||||
" ll provided by vimtex
|
" ll provided by vimtex
|
||||||
nnoremap <silent> <Leader>kk :w! !pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex<CR><CR>
|
" nnoremap <silent> <Leader>kk :w! !pdflatex -shell-escape -interaction=nonstopmode ./*.tex<CR><CR>
|
||||||
:function Pdfpls()
|
function! Pdfpls()
|
||||||
:echom "compiling ur tex goodness!"
|
echom 'compiling ur tex goodness!'
|
||||||
:w!
|
" w!
|
||||||
:!pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex
|
:!pdflatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
:!bibtex $PWD/*.aux
|
:!bibtex $PWD/*.aux
|
||||||
:!pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex
|
:!pdflatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
:endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! PdfLuapls()
|
||||||
|
echom 'compiling ur tex goodness!'
|
||||||
|
" w!
|
||||||
|
:!lualatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
|
:!bibtex $PWD/*.aux
|
||||||
|
" :!lualatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! PdfBibLuapls()
|
||||||
|
" https://tex.stackexchange.com/a/308565
|
||||||
|
" echom "compiling ur tex goodness!"
|
||||||
|
" :!mkdir -p build
|
||||||
|
" :!lualatex -output-directory=build -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
|
" :!cp *.bib build
|
||||||
|
" :!cd build
|
||||||
|
" :!bibtex %:r
|
||||||
|
" :!cd ..
|
||||||
|
" :!lualatex -output-directory=build -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
|
" :!mv build/*.pdf .
|
||||||
|
:!lualatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
|
:!bibtex ./*.aux
|
||||||
|
:!lualatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" nnoremap <silent><leader>lb :call Pdfpls()<cr><esc>
|
||||||
|
" nnoremap <silent><leader>lb :call PdfLuapls()<cr><esc>
|
||||||
|
" nnoremap <silent><leader>lb :call PdfLuapls()<cr>
|
||||||
|
nnoremap <silent><leader>lb :call PdfBibLuapls()<cr><esc>
|
||||||
|
|
||||||
|
|
||||||
nnoremap <silent> <Leader>lb :call Pdfpls()<cr><Esc>
|
|
||||||
nnoremap <Leader>l :exec &conceallevel ? "set conceallevel=0" : "set conceallevel=1"<CR><CR>
|
nnoremap <Leader>l :exec &conceallevel ? "set conceallevel=0" : "set conceallevel=1"<CR><CR>
|
||||||
|
|
||||||
" toggle GitGutterLineHighlights
|
|
||||||
nnoremap <Leader>d :GitGutterLineHighlightsToggle<cr>
|
|
||||||
|
|
||||||
" ALE bindings
|
" ALE bindings
|
||||||
nmap <silent> <C-k> :ALEPreviousWrap<cr>
|
nmap <silent> <C-k> :ALEPreviousWrap<cr>
|
||||||
|
Loading…
Reference in New Issue
Block a user