aboutsummaryrefslogtreecommitdiff
path: root/.vim/vimrc
diff options
context:
space:
mode:
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!
" ===========