0

I was trying out the vim clang_complete plugin. Once I type the C-x C-u on the following code fragment, positioned after some below

inline void someSizeChecks()
{
   // ...
}

void foo()
{
   some
}

I get a selection menu like:

completion menu

Gui challenged question: How do I select the function that the clang_complete plugin spits out in this pink selection menu? I tried space, enter, f, and tab. I also don't see anything in the plugin docs on how to use the menus once presented.

Peeter Joot
  • 7,848
  • 7
  • 48
  • 82

4 Answers4

1

You select the option using CTRL-N and CTRL-P and select it using CTRL-Y.

André Wagner
  • 1,330
  • 15
  • 26
0

It was in the help:

                                        *g:clang_complete_auto*
If equal to 1, automatically complete after ->, ., ::
Default: 1
Peeter Joot
  • 7,848
  • 7
  • 48
  • 82
0

At that point, you could either use the arrows of your keyboard, or use C-n and C-p to browse through the list of completion results.

Xavier
  • 61
  • 3
0

In order to select items in the menu generated by clang_complete you simply need to use the up and down keys to make your select your choice, finally hit enter to finish the completion.

infektor
  • 1
  • 1