aboutsummaryrefslogtreecommitdiff
path: root/vim/.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vim')
-rw-r--r--vim/.vim/after/ftplugin/tex.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/.vim/after/ftplugin/tex.vim b/vim/.vim/after/ftplugin/tex.vim
index aabdc85..de2ec0b 100644
--- a/vim/.vim/after/ftplugin/tex.vim
+++ b/vim/.vim/after/ftplugin/tex.vim
@@ -1,2 +1,10 @@
setlocal spell spelllang=en_gb
setlocal tabstop=2 shiftwidth=2
+
+function! Synctex()
+ call system('zathura --synctex-forward ' .
+ \ line('.') . ':' . col('.') . ':' . shellescape(bufname('%')) . ' ' .
+ \ shellescape(g:synctex_zathura_pdf_filename))
+endfunction
+
+map <C-T> :call Synctex()<CR>