When using <c-x><c-o>, vim opens a signature preview window which is different from the one opened when using :ptag.

How to open that one when not completing like when reviewing in normal mode?

I don't want the full file for preview like with :ptag. Just the signature and some type metadata from tags.

I set omnifunc=syntaxcomplete#Complete. Not using any completion plugins.

  • Which filetype? This is usually a documentation popup. It usually only appears when preview is in completeopt. – D. Ben Knoble Feb 27 at 16:43
  • filetype C. Yes completeopt has preview by default. – bkdm Feb 27 at 16:59
  • Are you sure that’s what omnifunc is set to? I ask only because the default filetype uses a special c completion function. At any rate, the best bet is probably Man for stdlib functions. I think some of the code is hardwired in there, especially when completing tags. – D. Ben Knoble Feb 27 at 17:00
  • yes you are right. It is ccomplete#Complete. I am still not able to find the code that opens that preview window. – bkdm Feb 27 at 17:05
  • The function ccomplete#Complete doesn't seem to read completeopt or open preview window by itself. May be some autocommand is doing this. – bkdm Feb 27 at 17:10

Maybe you can use :set cot=. To know more info see cot

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.