Signed-off-by: Marcin Wozniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-08-28 19:00:44 +02:00 committed by Marcin Wozniak
parent 0b969ac990
commit e61ae12cc8
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -14,11 +14,11 @@ au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
" plugins " plugins
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' } Plug 'scrooloose/nerdtree', "{ 'on': 'NERDTreeToggle' }
Plug 'nmante/vim-latex-live-preview' "Plug 'nmante/vim-latex-live-preview'
"Plug 'lervag/vimtex' Plug 'lervag/vimtex'
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
Plug 'prettier/vim-prettier', { 'do': 'yarn install' } Plug 'prettier/vim-prettier', { 'do': 'npm install --force' }
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} Plug 'iamcco/markdown-preview.nvim', { 'do': 'npm install --force' }
call plug#end() call plug#end()
" Status-line " Status-line
@ -101,6 +101,7 @@ nnoremap <F2> :GoRun<CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" latex " latex
let g:tex_flavor = "latex"
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw! autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!
autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw! autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw!
autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw! autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw!
@ -115,3 +116,4 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
" Auto add notes git " Auto add notes git
autocmd BufWritePost *.md :Prettier <CR> autocmd BufWritePost *.md :Prettier <CR>
autocmd BufWritePost *.md silent! execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw! autocmd BufWritePost *.md silent! execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw!