Problem with Ruby OmniComplete in Vim 7.3 finding matches on one line, but not 2 lines down

I am trying to understand why Ruby omnicompl sometimes works for me.

Omnicomplete working Here it works as expected.

Trying to same operation on the same ivar 2 lines down But when I try to do the same on the same ivar 2 lines, I get "Pattern not found"

Both run the same typing current_user_session.fi @ Ctrl+ X+O

I checked the tpopes rails.vim github page for open / closed problems and tried to do this with no luck.

My macvim and vim compiled with + ruby

:echo &omnifunc returns rubycomplete#Complete

:Rails! returns rails.vim 4.3 (Rails-controller)

I have my full vimdir on github for reference.

+5
source share
1

, , img2 (@current_user_session = UserSession.find).

, , , , , .

.

User.find # => fine


user = User.find
user.find # => Method not found

:

User.methods.sort
User.find.methods.sort

, . , "" , . "tom'.find" .

+1

All Articles