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 :call Synctex()