[Vim-latex-devel] inverse search with xdvi and okular
Brought to you by:
srinathava,
tmaas
From: lli03 <ll...@12...> - 2010-04-19 03:40:44
|
Hello, I tried to use inverse search with vim-latex. But I couldn't use this function with okular or xdvi. With the old version, I can use xdvi with inverse search by set let g:Tex_ViewRule_dvi="xdvi -editor 'gvim --servername latex-suite --remote- silent'" and run gvim with "gvim --servername latex-suite --remote-silent" In the new version, this won't work, I have tried to set let g:Tex_ViewRule_dvi="xdvi -editor 'gvim --servername gvim --remote-silent'" (both forward search (with "\ls") won't work) or let g:Tex_ViewRule_dvi="xdvi" (inverse search won't work.). I am more inclined to use okular. So I tried to solve this with okular. When I set "let g:Tex_ViewRule_dvi = 'okular'". It didn't work. So I read the source file compiler.vim, and found that kdvi was obsolete. I replaced all "kdvi" with "okular", and change let execString = 'silent! !okular --unique file:'.mainfnameRoot.'.dvi\#src:'.line('.') .expand("%") to "let execString = 'silent! !okular --unique '.mainfnameRoot.'.dvi\#src:'.line('.').expand("%") I can use okular with forward and backward search now? I want to how to solve this with xdvi. Kenneth |