# Vim+Zathura+Synctex * In a script called 'vimura': ``` #!/bin/sh echo $1 zathura -s -x "gvim --servername $1 -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $* ``` For zathura >= 0.3.2 remove `-s`. * In your vimrc: ``` function! Synctex() " remove 'silent' for debugging execute "silent !zathura --synctex-forward " . line('.') . ":" . col('.') . ":" . bufname('%') . " " . g:syncpdf endfunction map :call Synctex() ``` * Build your latex doc with synctex enabled ``` pdflatex -synctex=1 ... ``` * Open PDF with vimura script. * `CTRL+Click` in Zathura jumps to source in vim. * `CTRL+Enter` in vim jumps to corresponding position in PDF.