>> My current view rule is simple 'okular', and I assume 'blah.dvi' is
>> automatically appended. How do I change what is appended? Or should I
>> simply put 'okular foo.dvi' where foo is the jobname?
>>
> Oh, and while that would work for \lv, doesn't seem to be a
> corresponding function for \ls

\ls looks at Viewer to try to determine if it knows of a way to pass the 
corresponding source special hook to the viewer. If a viewer doesn't 
know anything about source specials, then there's no hope. So an 
override for \ls like the override for \lv would have to have a way of 
passing in the line number to hookup with the source specials and 
possibly enough information to the editor to then reverse search back to 
the vim document after browsing.

This is why I think the ultimate solution would be to build jobname 
support directly into compiler.vim (that would default to 
jobname=filename) so all of these little hacks wouldn't be needed. It 
shouldn't be hard to do... It would just require...

(a) Determining how to pass the jobname in (via a variable? via another 
filename? both?)

(b) Going through and using the jobname in compiler.vim whenever it is 
available (probably only 9 or 10 different places)

If someone has a good idea for a patch, then 
git-format-patch/git-send-email them to the list for review and application.

--Ted

-- 
Ted Pavlic <t...@tedpavlic.com>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to