Closed qvn closed 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...
To complete string, you must select candidate. It is Vim's feature.
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...