Re: [Vim-latex-devel] Issue with includegraphics tex-completion and Tex_ImageDir
Brought to you by:
srinathava,
tmaas
From: Francesco M. <fra...@gm...> - 2011-11-10 12:05:25
|
Kay Smarczewski <kay.smarczewski <at> mailbox.tu-dresden.de> writes: > > Hey, > > I use the latest svn trunk version. > If I leave the > > TexLet g:Tex_ImageDir = '' > in texrc the <F9>-completion of \includegraphics{ aborts without any > message. Setting it to > > Tex_ImageDir = '.' > brings the completion back to life. So this could be a better default > value. > > But the inserted path way too long, e.g. ..//home/.../tex/file > Changing the param value for the root dir for Tex_SetupFileCompletion > to '' solves this problem for me. I have attached a tiny patch... maybe > someone can use it sometime. > > Kind regards, > > Kay > > Attachment (texviewer_path.patch): text/x-diff, 403 bytes > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > > _______________________________________________ > Vim-latex-devel mailing list > Vim-latex-devel <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > I just solved adding g: here's my patch --- texviewer.vim 2011-11-10 12:55:48.750162773 +0100 +++ texviewer_new.vim 2011-11-10 12:56:07.656484462 +0100 @@ -148,8 +148,8 @@ \ '', \ '^\.\\|\.tex$\\|\.bib$\\|\.bbl$\\|\.zip$\\|\.gz$', \ 'noext', - \ Tex_GetVarValue('Tex_ImageDir', '.'), - \ Tex_GetVarValue('Tex_ImageDir', '')) + \ Tex_GetVarValue('g:Tex_ImageDir', '.'), + \ Tex_GetVarValue('g:Tex_ImageDir', '')) elseif exists("s:type") && s:type == 'bibliography' call Tex_SetupFileCompletion( |