[Vim-latex-devel] Forward search with sumatrapdf
Brought to you by:
srinathava,
tmaas
From: Jorge R. <sk...@gm...> - 2012-10-26 15:16:03
|
Hi all, I previously thought it was necessary to patch vim-latex in order to have forward search when using sumatrapdf in windows, but after checking the options of sumatrapdf I realize that it is much easier. I just defined a function: function! MyForwardSearch() let target = 'main.pdf' let cmd = g:SumatraPdfLoc . " -reuse-instance -forward-search " . expand('%:p') . " " . line('.') . " " . target let execString = 'silent! !start ' . cmd exe execString endfunction nnoremap <Leader>la :<C-U>call MyForwardSearch()<CR> here g:SumatraPdfLoc is a string to where sumatra is located "c:\....\sumatrapdf.exe" target is the pdf that is produced I couldn't find a way of doing this directly with vim-latex without defining this function and mapping. Would it be possible to incorporate similar changes to this directly into vim-latex or vim-latex already supports this and I have something wrong with my configuration? Thanks, Jorge |