I ended up resolving this issue by uncommenting

TexLet g:Tex_TreatMacViewerAsUNIX = 1

and setting the following explicitly:

TexLet g:Tex_ViewRule_pdf = 'open -a Preview'


I tried Gianluca's solution, but the problem continued to persist.

Hope that helps anyone that has been stuck getting the latex suite working
in OS X.

thanks

On 16 May 2010 15:24, David Reed <david.ree...@gmail.com> wrote:

> I was hopeful that this would solve the problem.  I have been able to
> compile but this was with some combination of files in certain locations
> that I cannot figure out.
>
> I appreciate the help though.
>
> On Sat, May 15, 2010 at 8:48 PM, Gianluca Meneghello 
> <gianm...@gmail.com>wrote:
>
>> I had the same problem, but I'm not an expert so I'm not sure this is
>> the correct solution.
>>
>> In the texrc file (probably in your
>> $HOME/.vim/ftplugin/latex-suite/texrc) there are a couple of
>> "has:('macunix')" entries, one for the viewer and one for the
>> compiler.
>>
>> I solved the problem by replacing it with "has:('unix')".
>>
>> It seems vim on Mac OS X declares itself as unix and not macunix (I
>> suppose macunix was on some older Mac OSs, but I'm not at all sure
>> about that).
>>
>> If someone has a better explanation for this I'm really curious to know!
>>
>> Hope it can be useful
>>
>> Gianlu
>>
>> PS: I've seen there are some "macunix" also in compiler.vim
>> ($HOME/.vim/ftplugin/latex-suite/compiler.vim). So far I did not touch
>> them, but I think it can be something similar.
>>
>> On 16 May 2010 01:58, Bayard Randel <k...@nocturne.net.nz> wrote:
>> > The \lv command returns the following error on a clean install of
>> > latex-suite on OS X 10.6.3:
>> >
>> > Error detected while processing function Tex_ViewLaTeX:
>> > line   34:
>> > E121: Undefined variable: s:viewer
>> > E116: Invalid arguments for function strlen(s:viewer)
>> > E15: Invalid expression: strlen(s:viewer)
>> >
>> > Any help would be appreciated, thanks.
>> >
>> ------------------------------------------------------------------------------
>> >
>> >
>> > _______________________________________________
>> > Vim-latex-devel mailing list
>> > Vim-latex-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>> >
>> >
>>
>>
>>
>> --
>> www.itabeta.org
>>
>> First published in September 1843 to take part in "a severe contest
>> between intelligence, which presses forward, and an unworthy, timid
>> ignorance obstructing our progress"
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Vim-latex-devel mailing list
>> Vim-latex-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>>
>
>
------------------------------------------------------------------------------

_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to