Forward searching refers to making a viewer display a given document at a given location from within Vim. At present, these viewers are known to support forward searching, but viewers that are not listed here may work, too:
Viewer | OS | Supported documents | Comment |
---|---|---|---|
Skim | Apple / OS X Tiger | Supports also inverse searching | |
PDFView | Apple / OS X | No longer in development, supports also inverse searching | |
TeXniscope | Apple | PDF, DVI | |
YAP | Windows | DVI, PS | ships with MikTex |
Sumatra PDF | Windows | ||
kdvi | Linux/UNIX | DVI | |
okular | Linux/UNIX | DVI, PDF, PS and many more | Included in KDE 4 |
xdvi | Linux/UNIX | DVI | |
xdvik | Linux/UNIX | DVI |
Pressing \ls
from within Vim
should make the viewer display the portion of the document where your
cursor is placed.
OS/X users need to set the g:Tex_TreatMacViewerAsUNIX
flag
to 1
and provide a UNIX-like viewrule, that expects as
arguments the document, the linenumber and the sourcefile in this order.
Most DVI viewers need "source-special" information in order to do
forward (and inverse) searching. This information is embedded in the
dvi
file if the LaTeX source is compiled with the
--src-specials
option. By default, Latex-Suite does not
supply this argument to the compiler. See the section on
g:Tex_CompileRule_dvi
to find out how this option can be set.
Pdf viewers usually use a synctex(.gz) file. This can be enabled with the compiler flag
-synctex=1
for pdflatex.
Within this suite it is however enabled by default, unless you change
g:Tex_CompileRule_pdf
.