When there are multiple complete suggestions from Vim plugin YouCompleteMe, how do I accept the one I want ?
What I currently do is pressing Esc key, I just want to know if I got it right.
On Windows, be sure that the build utility msbuild is in your PATH. Go support: install Go and add it to your path. Navigate to YouCompleteMe/third_party/ycmd/third_party/gocode and run go build . TypeScript support: as with the quick installation, simply npm install -g typescript after successfully installing Node.
To accept the current insert completion entry use <c-y>
. Think of it as "yes".
For more help see:
:h complete_ctrl-y
Usually with Ctrl + Y (yes); read up :help popupmenu-keys
.
Ctrl-Y
is default, but you can add other key bindings by adding this line to your .vimrc
:
let g:ycm_key_list_stop_completion = ['<C-y>', '<CR>']
In this ^ example, you can use either Ctrl-Y
or Enter
to accept the completion and free up the cursor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With