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

Reply via email to