Hi, I've noticed that if your *.bib files are formatted in the following way:
@book{ key,
...
}
(i.e. with some spaces/tabs preceding the key)
the F9 automatic \cite completion will insert the unwanted initial whitespace.
The attached patch (against the current
vimfiles/ftplugin/latex-suite/texviewer.vim
in svn) will fix this problem (i.e. no spaces/tabs will be inserted).
(usual disclaimer: it works for me, YMMV...)
Cri
--
GPG/PGP Key-Id 0x943A5F0E - http://www.linux.it/~cri/cri.asc
Free software, free society - http://www.fsfeurope.org
--- texviewer.vim.orig 2007-05-18 09:53:07.000000000 +0200
+++ texviewer.vim 2007-05-18 10:12:00.000000000 +0200
@@ -383,7 +383,7 @@
if getline('.') =~ '\\bibitem{'
let bibkey = matchstr(getline('.'),
'\\bibitem{\zs.\{-}\ze}')
else
- let bibkey = matchstr(getline('.'),
'{\zs.\{-}\ze\(,\|$\)')
+ let bibkey = matchstr(getline('.'), '{[\t
]*\zs.\{-}\ze\(,\|$\)')
endif
let completeword = strpart(bibkey, strlen(s:prefix))
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Vim-latex-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
