Hi, folks! I'm kind of new in Vim (just a few months of use) and I would to ask for your help about correctly configure YCM to work in PHP projects (I manual compile Vim 7.3.584 just to use YCM, btw). Basically, my doubts are about autocomplete class elements and GoToDefinitionElseDeclaration
feature.
I made a test: create some variables inside a class and, inside a function, tryed to use $this->
and self::
. Theoretically, YCM shouldn't autocomplete the class vars (and functions)? But it not happen and the options showed are relative to things outside the class.
Also, I didn't understand very well the purposes and what to do about that .ycm_extra_conf.py
file. It's necessary to the GoToDefinitionElseDeclaration
feature?
The most awkward: in insert mode, if I'm inside a class, function or whatever, if I press arrow up or arrow down, thepumvisible() ? "\pumvisible" : "\
text is inserted...
I hope you can help me with this, probably it's also the doubt of many others wanting to use YCM in PHP projects. :-)
Regards!
Hi, folks! I'm kind of new in Vim (just a few months of use) and I would to ask for your help about correctly configure YCM to work in PHP projects (I manual compile Vim 7.3.584 just to use YCM, btw). Basically, my doubts are about autocomplete class elements and
GoToDefinitionElseDeclaration
feature.
I made a test: create some variables inside a class and, inside a function, tryed to use
$this->
andself::
. Theoretically, YCM shouldn't autocomplete the class vars (and functions)? But it not happen and the options showed are relative to things outside the class.Also, I didn't understand very well the purposes and what to do about that
.ycm_extra_conf.py
file. It's necessary to theGoToDefinitionElseDeclaration
feature?
The most awkward: in insert mode, if I'm inside a class, function or whatever, if I press arrow up or arrow down, the
pumvisible() ? "\pumvisible" : "\
text is inserted...
I hope you can help me with this, probably it's also the doubt of many others wanting to use YCM in PHP projects. :-)
Regards!
--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/34d750cb-612f-42a1-99eb-54728fd2abd6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
pumvisible() ? "\pumvisible" : "\
, indeed was a conflict, but I already removed that plugin, so it's OK.$this->
and self::
in PHP files with the respectives properties and methods or there's something I can do to accomplish that?Well, this answer my doubt: no YCM with PHP, after all...
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/c07e7153-04a6-49e7-91ca-4a8300d52190%40googlegroups.com.
As as said before, Eclim + YCM it's awesome!Just one thing: the autocomplete for functions e properties of classes and objects it's great, but, after reinstall YCM after Eclim was already working, the autocomplete for native PHP functions stoped (neither automaticaly nor pressing <C-Space>). There's something I can do?
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/15beb89e-5669-4a4e-ae62-66ddf1a3cbd9%40googlegroups.com.
Thank you for the answers, Val!About thatpumvisible() ? "\pumvisible" : "\
, indeed was a conflict, but I already removed that plugin, so it's OK.