Permalink
Browse files

Adding 'UnBundle' capability to spf13-vim & readme.

  • Loading branch information...
1 parent 4796516 commit 2d1b8f3ebb89b3fba8cda5b0bfa3075dddaa8fc1 @spf13 committed Nov 27, 2012
Showing with 24 additions and 0 deletions.
  1. +8 −0 .vimrc
  2. +16 −0 README.markdown
View
@@ -532,6 +532,14 @@
" Functions {
+function! UnBundle(arg, ...)
+ let bundle = vundle#config#init_bundle(a:arg, a:000)
+ call filter(g:bundles, 'v:val["name_spec"] != "' . a:arg . '"')
+endfunction
+
+com! -nargs=+ UnBundle
+\ call UnBundle(<args>)
+
function! InitializeDirectories()
let separator = "."
let parent = $HOME
View
@@ -180,6 +180,22 @@ To add a new bundle
echo Bundle \'spf13/vim-colors\' >> ~/.vimrc.bundles.local
```
+## Removing (disabling) an included plugin
+
+Create `~/.vimrc.local` if it doesn't already exist.
+
+Add the UnBundle command to this line. It takes the same input as the Bundle line, so simply copy the line you want to disable and add 'Un' to the beginning.
+
+For example, disabling the 'AutoClose' and 'scrooloose/syntastic' plugins
+
+```bash
+ echo UnBundle \'AutoClose\' >> ~/.vimrc.local
+ echo UnBundle \'scrooloose/syntastic\' >> ~/.vimrc.local
+```
+
+**Remember to run ':BundleClean!' after this to remove the existing directories**
+
+
Here are a few of the plugins:

1 comment on commit 2d1b8f3

@jaywilliams

This just made my life much easier. 👍

Please sign in to comment.