rubycomplete.vim leading whitespace bug?

Doug Kearns dougkearns at
Sun Apr 16 06:31:34 EDT 2006

On Sun, Apr 16, 2006 at 12:40:07AM +1000, Doug Kearns wrote:
> Mark, 
> I've just started playing with your omni completion function and noticed
> that the completion results differ depending on whether what is being
> completed has leading whitespace.
> Eg.
> :foobar.
>    :foobar.
> The first offers the correct methods but the second offers me a list of
> 'constants'.
> Any ideas?

Well I had a very quick look and it seems as though cWORD is not being
expanded properly, at the start of get_completions(), when there is
leading whitespace. It is always returning an empty string.

More information about the vim-ruby-devel mailing list