Re: [Vim-latex-devel] Some issues with completion
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sri...@gm...> - 2005-11-21 05:11:19
|
Hi Dan, Thanks for pointing this out... I am afraid that adding doublequotes isn't a very portable solution. There are multiple ways in which the grep command finally gets to the underlying operating system. One of the most common way is: bash -c "grep -nH pattern filelist" In this invokation, having double quotes in the pattern would definitely screw things up. What would be better is escaping the characters which grep treats specially. Is this whats happening in your case? It will help if you can supply an example of when things go wrong for you.. Also, I am curious about your OS and your 'shell' setting. Thanks, Srinath On 11/20/05, Dan Pemstein <da...@lc...> wrote: > Hi there, > > \ref and \cite completion did not work for me out of the box with the > 2005.11.19 release and vim 6.3.86 on a debian testing linux machine. > The issue is with grep: curly brackets were not being correctly > escaped. This is with the line > > set grepprg=3D/bin/grep\ -nH\ $* > > in $VIM/ftplugin/tex.vim. It might be my version of grep...I'm not > sure. In any case, two changes to > $VIMRUNTIME/ftplugin/latex-suite/texview.vim got things working for > me. In both cases, I added double-quotes to expressions to fix the > issue. First, I changed line 543 to > > call Tex_Grepadd('"@.*{'.a:prefix.'"', "%") > > Second, on line 625: > > call Tex_Grepadd('"\label{'.a:prefix.'"', "%") > > I wanted to express my appreciation for the work you guys put into > latex-suite. It is immensely convenient. Hopefully the info above > will be useful to you. > > cheers, > > Dan > > -- > Daniel Pemstein > Email: db...@ui..., da...@lc... > Web: http://www.danpemstein.com > PGP: http://www.danpemstein.com/files/pgp.txt > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iD8DBQFDgUmIItxEqhMqILgRAnkQAJ4hjSQ26dXgZSWgbz9UYWTKVmk0bQCfWQ/6 > fIIvrn27Uq3yxuYNFHvtjIs=3D > =3DS8Ii > -----END PGP SIGNATURE----- > > > |