Closed danstn closed 9 years ago
UPDATE: This does not happen when editing Js/C for example. (vim test.js
or vim test.c
)
I just tried with ruby files and nothing bad happen. So apparently is a problem with your configuration. Closing
Hey there, i've been having the exact same problem. If you have vim-ruby plugin installed, then you need to apply this changes to the vim-ruby/autoload/rubycomplete.vim file.
The problem is that vim-ruby tries to call instance_methods
function in any variable, according to it's type, so when you do some like this:
some_var = gets.chomp
some_var.(here is were it'll stop working)
vim-ruby will try to come up with a list of instance_methods
for a variable of vartype "gets". There is were it breaks. But if you do the changes that are in that pull request(they haven't merged it yet, but it's been over 6 months so i don't think they will) everything will work. Hope this fixes your issue!!
Scenario:
vim test.rb
i..
Results in the following:
Disabling
Plugin 'Valloric/YouCompleteMe'
fixes the problem.Using YCM with
ultisnips
andvim-snippets
Running on OSX Yosemite