On Thu, Oct 08, 2009 at 10:48:11AM +0200, Keyan wrote:
> hi,
>
> i have the following problem. for citations keys, my current tool auto-
> generates keys like:
>
> AuthorYearFirst-Second-ThirdWordOfTitle
>
> i like to complete words with CRLT-p, which does not function in this
> case. is there a nice an elegant way to autocomplete words including
> "-" if there is a "\cite.{" before it?
>
> cheers,
> keyan

You could update 'iskeyword' to include -. Add this to
~/.vim/after/ftplugin/tex.vim

    setlocal iskeyword+=-

For more information see :help 'iskeyword'

But it will include it for all Ctrl-p completions (and some other
Vim commands).

Simon
-- 
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

Attachment: signature.asc
Description: Digital signature

Reply via email to