[Vim-latex-devel] Why do I have to run TTarget for every file?
Brought to you by:
srinathava,
tmaas
From: Alan S. <ala...@po...> - 2006-02-24 14:15:12
|
Hello, I finally decided to ask this, since it's been nagging me for a while. I use the current (Jan. 24th) version of the latex suite on Vim 7 =20 (but I was seeing the same behavior on 6.3) on a Mac. When I open a =20 TeX file, if I do "\ll", it tells me that it's compiling, but it does =20= not seem to be using pdflatex but plain latex (the dvi is updated, =20 not the pdf). If I do ":TTarget", then it suggests "pdf" correctly, =20 and I can now compile. I tried telling it that I wanted to compile to pdf by default (even =20 though I thought it would on the Mac), so I added: let g:Tex_DefaultTargetFormat =3D 'pdf' to my .vim/ftplugin/tex.vim file I checked that it was taken into account (when I look up the content =20 of the variable, it tells me it's pdf), but it still requires me to =20 do a TTarget once for each buffer. Here is the full contents of my .vim/ftplugin/tex.vim file, in case =20 it matters: " TIP: if you write your \label's as \label{fig:something}, then if you " type in \ref{fig: and press <C-n> you will automatically cycle through " all the figure labels. Very useful! set iskeyword+=3D: setlocal tw=3D78 setlocal fo+=3Daw let g:Tex_ViewRule_dvi =3D 'advi' let g:Tex_ViewRule_pdf =3D 'TeXShop' let g:Tex_DefaultTargetFormat =3D 'pdf' " To be able to input =E9 imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine If someone knows what is going on or can help me debug this, I'd be =20 grateful. Thanks, Alan --=20 Alan Schmitt <http://alan.petitepomme.net/> The hacker: someone who figured things out and made something cool =20 happen. .O. ..O OOO |