[Vim-latex-devel] [Contact] vim-latex on mac, a problem in previewer setting
Brought to you by:
srinathava,
tmaas
From: Shingo A. <vim...@so...> - 2004-09-22 15:10:52
|
Hello, I use vim-latex in mac os x, and today I update from 1.5 to 20040805. Then ¥ll won't work in my box. The way ¥ll works has been changed, and viewer rules g:Tex_ViewRule_{pdf,ps,dvi} too. Now, ftplugin/texrc says g:Tex_ViewRule_pdf takes Application commands to open pdf/dvi files (no 'open' needed) , and if leave blank, the system picks the default app(ex. preview.app). Tex_ViewLaTeX() implements as above. if strlen(s:viewer) let s:viewer = '-a '.s:viewer endif let execString = 'open '.s:viewer.' $*.'.s:target but if leave g:Tex_ViewRule_pdf blank, when open a .tex file I get an error from Tex_SetTeXCompilerTarget() like this No View rule defined for target pdf Please specify a rule in $VIMRUNTIME/ftplugin/tex/texrc. :help Tex_ViewRule_format for more information so, I made this patch (rather ad-hoc). --- compiler.vim.orig Thu Sep 22 22:00:21 2004 +++ compiler.vim Wed Sep 22 23:09:02 2004 @@ -23,7 +23,7 @@ let targetRule = Tex_GetVarValue('Tex_'.a:type.'Rule_'.target) - if targetRule != '' + if targetRule != '' || (has('macunix') && a:type == 'View') if a:type == 'Compile' let &l:makeprg = escape(targetRule, Tex_GetVarValue('Tex_EscapeChars')) elseif a:type == 'View' -- Shingo Adachi |