Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Smart_close_popup() does not return selected string #443

Closed qvn closed 11 years ago

qvn commented 11 years ago

I have complsnippets and complcache installed with this mapping:

imap <expr><CR> neosnippet#expandable() ? "\<Plug>(neosnippet_expand)" : pumvisible() ? neocomplcache#smart_close_popup() : "\<CR>"

so that my enter key would either expand the snippet or return the selected string if it's not a snippet (therefore not expandable).

However, when I do hit enter and it's not a snippet (noted with [B]) it simply close the popup window without completing the string...

Shougo commented 11 years ago

However, when I do hit enter and it's not a snippet (noted with [B]) it simply close the popup window without completing the string...

To complete string, you must select candidate. It is Vim's feature.