maralla / pack

📦 The missing vim8 package manager.
MIT License
262 stars 17 forks source link

Accidently run `pack install`, which empties my .packfile #25

Closed gou4shi1 closed 6 years ago

gou4shi1 commented 6 years ago

(On ubuntu 16.04 vim 8.1)

Before that, I have install many plugins Accidently, I run pack install (this command shows something like that:

 [Chiel92/vim-autoformat] Plugin already installed under "/home/gou4shi1/.vim/pack/formatting/start/vim-autoformat"

and then I found that ~/.vim/.pack/packfile goes empty

Can I recovery it?

gou4shi1 commented 6 years ago

I find that if I install a installed plugin, this plugin will be removed from packfile

fugokidi commented 6 years ago

@gou4shi1 it happened to me as well, can you recover it?

alexanderjeurissen commented 6 years ago

@gou4shi1 @fugokidi

Tl;DR Running pack generate should resolve the issue.

Why?: It seems that pack install clears the pack file, but if you take a closer look the plugins are still present in the .pack folder. pack generate regerenates the pack file based on the installed plugins.

gou4shi1 commented 6 years ago

@alexanderjeurissen pack generate will not generate .pack/packfile

maralla commented 6 years ago

You can upgrade to the latest version to resolve the problem.

gou4shi1 commented 6 years ago

@maralla work like a charm