aboutsummaryrefslogtreecommitdiff
path: root/.vim/vimrc
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-03-18 11:02:09 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-03-18 11:02:09 +0100
commit01caf7b7e429f9967a3274b0d5268b3d7c018c55 (patch)
treeba5ee5ee19ead0778be75b6836bc6328e8df71cf /.vim/vimrc
parent6aceb256674aa0a69b6799576e4ead598b1adefc (diff)
downloaddotfiles-01caf7b7e429f9967a3274b0d5268b3d7c018c55.tar.gz
vim
Diffstat (limited to '.vim/vimrc')
-rw-r--r--.vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 19e4a82..d98bb5f 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -86,6 +86,8 @@ nmap <silent> <F6> :TlistToggle<CR>
nmap <silent> gc :tabclose<CR>
nmap <silent> gn :tabnew<CR>:e .<CR>
+"tmap <silent> <Esc> <C-\><C-n>
+
" Smart brackets
inoremap "" ""<left>
inoremap '' ''<left>
@@ -112,7 +114,7 @@ command -bar Runbuffer call Run_in_terminal(expand("%:p"))
command -bar Make call Run_in_terminal("make run")
command -bar Fileheader call Insert_Header(expand("%"))
-command -bar Makelatex silent! execute "!pdflatex % > /dev/null 2>&1 &" | redraw!
+command -bar Makelatex silent! execute "!(pdflatex % > /dev/null 2>&1 && killall -s SIGHUP mupdf)&" | redraw!
command Openpdf silent! execute "!mupdf " . (join(split(expand("%"), '\.')[:-2], ".") . ".pdf") . " > /dev/null 2>&1 &" | redraw!
" ===========