spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

How to unbundle 'Shougo/neocomplcache' properly? Unbundle it directly causing error #443

Open sgon00 opened 11 years ago

sgon00 commented 11 years ago

Hi, I unbundled 'Shougo/neocomplcache' in .vimrc.local:

UnBundle 'Shougo/neocomplcache'

Then run :BundleClean! But after this, whenever I use "Backspace" button in insert mode, I get the following error message:

E117: Unknown function: neocomplcache#smart_close_popup
E15: Invalid expression: neocomplcache#smart_close_popup()."\^H"

Can anyone tell me what to do? thanks.

ljani commented 11 years ago

Clearing your ~/.vimviews might be a start..

You also might want to disable the whole neocomplcache group, see this line: let g:spf13_bundle_groups=['general', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala']

sgon00 commented 11 years ago

Dear ljani, NO. I don't have views. I disabled that plugin at the beginning.

teasp00n commented 11 years ago

@sgon00 It's highly likely that @ljani is actually correct. The ~/.vimviews directory is the cache vim uses to save options on a per-file basis. Ensure that NeoComplcache is not being bundled by opening vim and running :BundleList and ensuring it is not there. Once you are sure it is no longer being loaded you will need to clear out the cache. The easiest way to do this is to rm ~/.vimviews/*. Keep in mind that this will remove everything from the cache.

sgon00 commented 11 years ago

I don't have .vimviews. I SAID I disabled vmview at the beginning. Currently, I delete " neocomplcache {...} in .vimrc manually to solve this issue. But this is just a workaround. It's not final solution. I just want to unbundle neocomplcache. That's all.

teasp00n commented 11 years ago

OK well you will want to override g:spf13_bundle_groups.

In your .vimrc.bundles.local put a line like let g:spf13_bundle_groups=['general', 'programming', 'misc', 'scala']. The main thing is to make sure neocomplcache isn't in it. Simply unbundling it won't stop the mappings from being made if it is left in this group.

sgon00 commented 11 years ago

Dear teasp00n, Thanks for the tip. If that is the way to remove the bundle, I think it must be changed in the future. For me, I just want to unbundle 'Shougo/neocomplcache', I don't want to override g:spf13_bundle_groups. Thanks.

spf13 commented 11 years ago

Troy described the current mechanism. I've been thinking for a while about a better mechanism that combines bundle with it's configuration but it's not ready yet.. and likely won't be for a while.

Steve Francia http://stevefrancia.com http://spf13.com http://twitter.com/spf13

On Thu, Sep 5, 2013 at 3:31 AM, sgon00 notifications@github.com wrote:

Dear teasp00n, Thanks for the tip. If that is the way to remove the bundle, I think it must be changed in the future. For me, I just want to unbundle 'Shougo/neocomplcache', I don't want to override g:spf13_bundle_groups. Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/spf13/spf13-vim/issues/443#issuecomment-23848479 .