7162Re: Latexsuite + MacVim: No View rule defined for target pdf
- Apr 4, 2008Aaaah! The sweet view Vim without an error in my face!
The following (in .vimrc) did *not* work:
let g:Tex_ViewRule_pdf = '/usr/bin/open -a Preview $*.pdf'
let Tex_ViewRule_pdf = '/usr/bin/open -a Preview $*.pdf'
let g:Tex_ViewRule_pdf = '/usr/bin/open -a Preview'
let g:Tex_ViewRule_pdf = ''
This *did* work:
let Tex_ViewRuleComplete_pdf = '/usr/bin/open -a Preview $*.pdf'
Thanks for all of your efforts and ideas!
On Fri, Apr 4, 2008 at 1:45 PM, Ben Schmidt
> Ben Schmidt wrote:
> > Kristian Niemi wrote:
> >> Hi,
> >> Thanks for chiming in!
> >> I downloaded latex-suite from their website  (it's version 20060325).
> >> MacVim from  (snapshot 24).
> >> I'll give the svn version of latex-suite a twirl!
> >> Just for the heck of it, I'll put that exact line in my .vimrc,
> >> although I already have a line there (and in the location the error
> >> message suggests) which should be equivalent. And, as has been
> >> previously stated, the variable _is_ set. It's like MacVim just
> >> doesn't like the answer. ;-) Maybe including a target ($*.pdf) in the
> >> command, that the var consists of, makes it happier. Who knows.
> >> Thanks for your help!
> >> /Kristian
> > Odd. That's the version of latex-suite I downloaded too. Maybe I'm doing something
> > wrong! This link seems to offer another more reliable solution...
> > http://www.mail-archive.com/vim-latex-devel@.../msg00093.html
> Aha! I found the error message, too! Line 43 of compiler.vim. Looks like setting
> that variable to blank would *cause* the error!
> It seems the previous bugfix was slightly buggy, too! This may be more robust:
> let Tex_ViewRuleComplete_pdf = '/usr/bin/open -a Preview $*.pdf'
> or such. Interesting. It will be fun getting my hands on some Tex stuff at some
> stage. One day...
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>