bronson / vim-update-bundles

Use Pathogen and Git to manage your Vim plugins.
91 stars 13 forks source link

Removing a plugin more than once throws error #1

Closed christoomey closed 14 years ago

christoomey commented 14 years ago

If you disable a plugin more than once, ruby throws an exception while executing the mv of the bundle to the Trashed-Bundles directory since there is already a folder .

As a fix, the script could overwrite the prior version of the trashed version of the bundle. In the end, I keep the commented out (ie " #BUNDLE: ...) BUNDLE directive in my vimrc to track my history, so the Trashed-Bundles directory is just a nice secondary with the way I am using this.

Overall though, a great script. Many thanks for this and your work on the github vim-scripts mirror for making pathogen even more useful.

bronson commented 14 years ago

Totally agree, this needs to be fixed. Just a quick note to say I haven't forgotten this, I'm just concentrating on other vim-related things right now. :)

bronson commented 14 years ago

Support removing a bundle multiple times. Closed by c4d538e91aacf98fc158011c1e55d80ec28f1c1a

Now you can delete a repo 100 times before it complains. I hesitate to rm -rf anything automatically since there's a chance the user has unpushed changes.