shawncplus/phpcomplete.vim

Disable when writing comments?

lukepass opened this issue · 3 comments

Hello,
is it possible to disable this plugin when writing a PHP comment? It can considerably slow down the writing process since it is constantly popping up.

Thanks.

Hmm, i assume you have something like YCM or Neocomplete which auto-triggers the plugin?
Can you check if there's a way to configure that plugin so it won't trigger completion in that case?

I myself find it useful when typing out docblocks (think like @param or @return), but i'm hitting ctrl+xo by hand. What should be possible to implement is to bail out early if it detects it's in a comment region, even tough the plugin still be called non the less.

Yes, I am using Neocomplete. I mapped F2 to Neocomplete lock function (no autocomplete) and I am pressing it when writing long comments.

That sounds pretty annoying to be honest (-: There's currently no way to disable completion inside comments, but i guess this could be implemented.