Hi,
I mostly followed instructions from [1] updated to work under Gnome-3 from info
from [2] to get forward/inverse search between vim and evince using pdflatex's
synctex support.
I got it working  couple of days ago, but it seems the latest update to vim
broke a few things (or something else happened). I am trying to get it to work
once again, and what's failing is the forward search. In [1], they achieved it
by declaring a function in ~/.vim/ftplugin/tex.vim:

function! Tex_ForwardSearchLaTeX()
  let cmd = 'evince_forward_search ' . fnamemodify(Tex_GetMainFileName(),
":p:r") .  '.pdf ' . line(".") . ' ' . expand("%:p")
  let output = system(cmd)
endfunction

which I think overrides latex-suite's own function. This worked before, but
somehow now vim is using latex-suite's own version, and so I get the wrong
behavior. I know I could hack compiler.vim directly, but then I would have to
maintain latex-suite manually instead of using the version provided by my
distribution, which makes keeping up with updates harder. Is there a clean way
of overriding this function? Could latex-suite make this customizable?

Thanks, 

jorges


[1] http://ubuntuforums.org/showthread.php?t=1716268
[2]
http://jlebl.wordpress.com/2011/01/13/vim-evince-and-forward-and-backward-latex-synctex-search/


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to