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>
|
||||
nnoremap gb :!git blame %<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
|
||||
" nnoremap <silent> <Leader>kk :w! !pdflatex -shell-escape -interaction=nonstopmode ./*.tex<CR><CR>
|
||||
function! Pdfpls()
|
||||
echom 'compiling ur tex goodness!'
|
||||
" w!
|
||||
:!pdflatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||
:!bibtex $PWD/*.aux
|
||||
:!pdflatex -shell-escape -interaction=nonstopmode $PWD/*.tex
|
||||
:endfunction
|
||||
:!pdflatex -shell-escape -interaction=nonstopmode ./*.tex
|
||||
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>
|
||||
|
||||
" toggle GitGutterLineHighlights
|
||||
nnoremap <Leader>d :GitGutterLineHighlightsToggle<cr>
|
||||
|
||||
" ALE bindings
|
||||
nmap <silent> <C-k> :ALEPreviousWrap<cr>
|
||||
|
Loading…
Reference in New Issue
Block a user