Dear Ted:

I appreciate you very much for your kindly help. However it is
regretful that it did not work
for me. But I just found an alternative way for this issue. I state it
out so that maybe some
other help can benefit from it.

Put the following line
:map \ld :execute '!LC_ALL=C xdvi -s 4  -sourceposition ' . line(".")
. expand("%") . " " . expand(Tex_GetMainFileName(':r')) . ".dvi
&"<CR><CR>
into .vimrc file. So that we can use \ld instead of \ls

I guess this is basically the vim-latex did for \ls....

I learned this from

http://vim.wikia.com/wiki/Vim_can_interact_with_xdvi

by which one can also defines the inverse search( which I never succeeded...)

Thank you Ted ;-) Thank you. Have a nice weekend.





On Sun, Apr 26, 2009 at 2:32 AM, Ted Pavlic <t...@tedpavlic.com> wrote:
>> yes I tried, it really works, however... by such configuration I
>> cannot get the forward search....
>
> If I recall correctly, forward search passes the line number to xdvi via
> parameters. The line I suggested...
>
>>> let g:Tex_ViewRule_dvi = 'bash -c "LC_ALL=C xdvi \$1" xdvi '
>
> Only deals with one parameter. Try replacing the \$1 with \$* or \$@
> (with some quoting to deal with spaces).
>
> --Ted
>
>
>>>
>>> You might have to play around with the quoting, but in principle I think
>>> it would work...<?>
>>>
>>> --Ted
>>>
>>>
>>> --
>>> Ted Pavlic<t...@tedpavlic.com>
>>>
>>>    Please visit my ALS association page:
>>>          http://web.alsa.org/goto/tedpavlic
>>>    My family appreciates your support in the fight to defeat ALS.
>>>
>>> ------------------------------------------------------------------------------
>>> Crystal Reports&#45; New Free Runtime and 30 Day Trial
>>> Check out the new simplified licensign option that enables unlimited
>>> royalty&#45;free distribution of the report engine for externally facing
>>> server and web deployment.
>>> http://p.sf.net/sfu/businessobjects
>>> _______________________________________________
>>> Vim-latex-devel mailing list
>>> Vim-latex-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>>>
>>
>
> --
> Ted Pavlic <t...@tedpavlic.com>
>
>   Please visit my ALS association page:
>         http://web.alsa.org/goto/tedpavlic
>   My family appreciates your support in the fight to defeat ALS.
>
> ------------------------------------------------------------------------------
> Crystal Reports &#45; New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty&#45;free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to