I’m a die hard fan of Vim and sometimes can be obsessed with trying out new plugins. I really like Vundle – a Vim plugin manager that simplifies plugin installation. I recently reorganized my .vimrc so that it’s easier to keep track of my plugin configurations. My .vim folder now has a sub directory
settings that contains different files for each plugin configuration:
.vimrc file will source these files one by one:
1 2 3
The only problem is whenever I uninstall a plugin, I have to remember to remove the configuration file for that plugin in the
settings directory. Of course I don’t always remember, and so Vundle CLI is built for this.
To quote from the
rmremove a plugin
listlist all installed plugins
findfind an installed plugin
cleanclean up unused plugin related files
rmwill remove the line
Plugin plugin_namein your
.vimrc, delete the configuration file for this plugin in the specified settings directory, and the plugin folder. Before anything is deleted, the command will prompt you for confirmation unless the
--forceswitch is on.
Rather than explaining what each command does, I think a gif would do a much better job:
The locations of
settings directories can be specified with options
--settings respectively. Otherwise, the default values are
~/.vim/settings. It should also be able to follow symlinks.
I still need to write tests but I’m leaving it for the future when I have more time and energy.
Vundle CLI is a Ruby gem so to install it, run this in your terminal: