spf13-vim icon indicating copy to clipboard operation
spf13-vim copied to clipboard

neocomplete isn't working properly after upgrade to latest spf13

Open Yu-w opened this issue 9 years ago • 10 comments

After upgrading to latest spf13, neocomplete seems to get removed or removed incompletely or somewhat not functioning. I always get <Plug>(neosnippet_expand) instead of proper snippet when trying to use neocomplete. I am at latest vim and latest spf13. Please help.

Yu-w avatar Aug 30 '15 02:08 Yu-w

I have encountered the same problem. Did you solve it?

otsukaresama avatar Oct 04 '15 05:10 otsukaresama

Here, too. If I use Ctrl-K, the snippet expands. If I use <CR> to accept the snippet, CleverCr() somehow blows it and puts the literal string "<Plug>(neosnippet_expand)"

MatthewMDavis avatar Oct 04 '15 17:10 MatthewMDavis

Yes, solved it. Put this line of code in .vimrc.local

inoremap <expr><CR> neosnippet#expandable() ? neosnippet#mappings#expand_or_jump_impl() : pumvisible() ? neocomplete#close_popup() : "\<CR>"

Yu-w avatar Oct 04 '15 19:10 Yu-w

That's got it. Thanks.

MatthewMDavis avatar Oct 04 '15 22:10 MatthewMDavis

@yuwang17 thanks, that worked for me.

barraponto avatar Dec 04 '15 22:12 barraponto

This problem still exists in the latest version.

qiuwei avatar Jan 14 '16 12:01 qiuwei

I did a little bit research. This problem is introduced by the commit 61bbd836. Check #769 for more information.

It seems @spf13 doesn't have enough time to maintain spf13 anymore. This issue is brought up multiple times but never solved.

qiuwei avatar Jan 14 '16 15:01 qiuwei

In my case, this workaround doesn't work with html files. However, it works with other types of files indeed.

qiuwei avatar Jan 14 '16 16:01 qiuwei

One of the issues here is that there isn't a consistent fix. As you noted the proposed workaround didn't work under certain circumstances. I'd happy merge a PR if someone submitted one that resolved it.

spf13 avatar Jan 18 '16 18:01 spf13

@Yu-w thanks for your workaround, it works for me!

chengweiv5 avatar Oct 03 '17 09:10 chengweiv5