Loading ...
Sorry, an error occurred while loading the content.

7146Re: Latexsuite + MacVim: No View rule defined for target pdf

Expand Messages
  • Ben Schmidt
    Apr 4, 2008
    • 0 Attachment
      krisse wrote:
      > This is driving me bonkers a t m.
      > If I open a tex-file with macvim, I get a error message stating that
      > "No View rule [is] defined for target pdf", and advises me to "specify
      > a rule in $VIMRUNTIME/ftplugin/tex/texrc".

      Where/how did you get latex-suite, Kristian? I downloaded the version from the
      sourceforge download site to try it out (haven't really got around to it yet), but
      can't even find that error message in the distribution!

      Still, googling, I found this page which might help


      Looks like the solution is...use vim-latex from its svn, not its tarball, or "put
      something like let Tex_ViewRule_pdf = '/path/to/acrobat/reader $*.pdf' in your
      ~/vimfiles/ftplugin/tex.vim or .vimrc"

      Though to me this seems basically equivalent to what you did already, except that
      it contains something real. I guess I would probably do

      let Tex_ViewRule_pdf = '/usr/bin/open -a Preview $*.pdf'

      Where do you get your latex-suite, Ted?

      Also, Kristian, since this seems to be MacVim specific...which version of MacVim
      are you using? I agree this is quite strange.


      > Allrighty. I add the following to that very file ($HOME/.vim/
      > ftpl...):
      > let g:Tex_ViewRule_pdf = ''
      > Nothing changes; same error. Hmh. Oh well; I add it to $HOME/.vimrc
      > --- but still no go! Frustrated, I try to add it to .gvimrc as well,
      > but no, no go; same error continue to pop up.
      > I don't get it if I use (10.5) native vim.
      > I have checked that .vim is in $VIMRUNTIME, and yes it is.
      > Tried to google this, but no luck there either.
      > Do you have any ideas? I really don't need this ViewRule. Everything
      > works fine, except for that annoying error-message.
      > Any and every thought is appreciated. Thanks!
      > /Kristian

      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 21 messages in this topic