Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-08-27 22:20:14 +02:00
parent c7934633be
commit 614cbc4891
2 changed files with 2 additions and 2 deletions

2
.vimrc
View File

@ -82,4 +82,4 @@ nnoremap <silent> <C-t> :tabnew <CR>
nnoremap <F7> :tabprevious<CR> nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR> nnoremap <F8> :tabnext<CR>
command W :execute ':silent w !sudo tee % > /dev/null' | :edit! cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!

View File

@ -97,7 +97,7 @@ nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR> nnoremap <F8> :tabnext<CR>
nnoremap <F2> :GoRun<CR> nnoremap <F2> :GoRun<CR>
command W :execute ':silent w !sudo tee % > /dev/null' | :edit! cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" latex " 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!