I was previously compiling my LaTeX in TeXShop, but I wanted to see what vim had to offer me. I must admit I like what I've found. In working around the primary hurdle (of Preview.app being lousy), I stubled accross PDFView.app. However, I'm having trouble getting it working like it's supposed to with LaTeX-Suite.

Though I believe I've entered the neccessary commands in (both) my .vimrc and .gvimrc to use PDFView.app as my PDF viewer, when I type \lv Preview.app opens to display the compiled PDF.

As a perhaps noteworthy symptom, after I've used \lv to view my PDF, it has been opened in Preview, and I have closed it so that the next time I use \lv I'll actually see the updated file, when I type \lv once the only effect is to see ":call TeX_ViewLaTeX()" on the bottom line. A second execution of \lv is required before Preview opens the PDF. The first time after I've opened the file, only one use of \lv is needed to open Preview.app and the PDF file. I'm not sure if this is related, though.

Anyhow, any help is much appriciated!
Thanks!

(relavant info below)

The last three lines of my .vimrc:
---
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_MultipleCompileFormats = 'pdf'
let g:Tex_ViewRule_pdf = 'open -a /Applications/PDFView.app'


The only lines of my .gvimrc
---
colorscheme navajo-night

let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_MultipleCompileFormats = 'pdf'
let g:Tex_ViewRule_pdf = 'open -a /Applications/PDFView.app'


:version
VIM - Vi IMproved 6.4 (2005 Oct 15, compiled Oct 29 2005 21:53:28)
MacOS X (unix) version
Modified by Benji Fisher
Compiled by Benji Fisher <macvim.org/OSX>
Huge version with Carbon GUI. ...
etc...

On Mac OS X v. 10.4.9

Of course, if any other info is needed, please ask.
Thanks again,

--
Vijay Kaul

Reply via email to