After nearly one year, I finally got the point.
Because I am using pathogen to manage all plugins of vim, and in some previous version of vim-latex, there is no "compiler" folder in the plugin, so everything is compatible with pathogen.
but after some updates, the compiler folder emerged, and need to be copied to the installation path of vim. On Windows, vim cannot handle such situation, so no "TCLevel" command and no initialization of "s:target", therefore cannot compile the source file. However, on OSX, it's OK.
So just copy the compiler folder to vim and everything is fine.
Happy new year!


On Wed, Jan 30, 2013 at 12:31 AM, Ted Pavlic <tpavlic@asu.edu> wrote:

Can you be more specific about the update?

Are you pulling from the code repository directly? If so, do you know the changeset (or at least range of possible changesets) that caused the problem?

  --Ted

--
Sent from the mobile device of Ted Pavlic.
Please excuse typos, swypos, or very brief responses.

On Jan 29, 2013 2:54 AM, "YANG LINCHANG" <linchang.yang@gmail.com> wrote:
Hi there,
first, thank you for developing such a good plugin for tex users. It worked fine on both of my Windows desktop and Macbook Pro.
However, I encountered the problem after one update of vim-latex that it cannot work on Windows.
When I press /ll to compile, vim will throw out a series of error messages:

Error detected while processing function Tex_RunLaTeX:
line 7:
E121: Undefined variable: s:target
E15: Invalid expression: s:target
line 10:
E121: Undefined variable: s:target
E116: Invalid arguments for function Tex_Debug
line 12:
E121: Undefined variable: s:target
E116: Invalid arguments for function Tex_GetVarValue('Tex_FormatDependency_'.s:t
arget) != ''
E15: Invalid expression: Tex_GetVarValue('Tex_FormatDependency_'.s:target) != ''

line 21:
E121: Undefined variable: dependency
E116: Invalid arguments for function Tex_Debug
line 25:
E121: Undefined variable: dependency
E116: Invalid arguments for function Tex_Strntok(dependency, ',', i) != ''
E15: Invalid expression: Tex_Strntok(dependency, ',', i) != ''
line 51:
E121: Undefined variable: initTarget
E15: Invalid expression: initTarget

And also the similar error messages of \lv and \ls.

but I can still compile .tex files on Mac. It seems that the malfunction is related to the target format and I set the right "g:Tex_DefaultTargetFormat" in my .vimrc and it used to work.
please advise me some possible solutions.
regards


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel