1

Suppose I'm writing a custom validation method in a Rails model:

validate :customer_must_be_valid  

And then I'm writing this method for validation:

def cust<TAB>

And neocomplcache does not present me with the completion for customer_must_be_valid.

Basically the problem is that symbols are not treated as possible method names when doing completion. How can I fix this?

For reference, here's my vimrc.

UPDATE

When pressing Ctlx Ctlo it doesn't show, but when I press Ctlx Ctlp it does show me the completion for the method name.

Michael Berkowski
  • 267,341
  • 46
  • 444
  • 390
Paweł Gościcki
  • 9,066
  • 5
  • 70
  • 81
  • What happens if you hit ``? – romainl Jan 15 '13 at 13:39
  • 1
    NeoComplCache only provides the "auto" part of "autocompletion". The "completion" part is handled by scripts, default or custom. Make sure the default omnicompletion works reliably first. – romainl Jan 15 '13 at 14:22
  • The question still stands :) I don't know how to fix it :/ For all I know it might be my vimrc, it might be some setting that needs to be set, it might be neocomplcache... – Paweł Gościcki Jan 15 '13 at 14:24
  • You don't need to set anything beside `ftplugin indent on` in your `~/.vimrc` for omnicompletion to work. "Better", "good" or "IDE-like" omnicompletion for your language may require additional plugins and additional settings. Since I don't do Ruby I can't help you further. That error message when trying `` suggests that the default Ruby omnicompletion script can't handle that situation so you should look around for an alternative script. And do your tests *without* NeoComplCache, by the way. – romainl Jan 15 '13 at 14:40

0 Answers0