Vundle: Managing Vim Plugins With Sanity

Preview:

DESCRIPTION

This are the slides for a lightning talk (5 minute talk) I gave at work in Corvil on January 23 2014. Vundle is a plugin that allows for a very convenient way to install, remove and keep plugins up to date. The talk covered a bit of history of how Vundle came to be, and finally presented Vundle itself.

Citation preview

VundleManaging Vim Plugins With Sanity

github.com/jdevera

vim.org → zip file → ~/.vim

The Mess: Name Clashes

Plugin Fooplugin/foo.vim

plugin/utils.vim

doc/foo.txt

Plugin Barplugin/bar.vim

plugin/utils.vim

doc/bar.txt

The Mess:Good Luck Deleting That Plugin!

The Mess:Good Luck Updating That Plugin!

Pathogen by Tim Pope (2008)

:set runtimepath?runtimepath=~/.vim,~/run/share/vim/vimfiles,

~/run/share/vim/vim72,~/run/share/vim/vimfiles/after,~/.vim/after

Everything under ~/.vim/bundle

Foo~/.vim/bundle/Foo/plugin/foo.vim

~/.vim/bundle/Foo/plugin/utils.vim

~/.vim/bundle/Foo/doc/foo.txt

Bar~/.vim/bundle/Bar/plugin/bar.vim

~/.vim/bundle/Bar/plugin/utils.vim

~/.vim/bundle/Bar/doc/bar.txt

Problems solved?

Keeping it all up to date(Pathogen + Git + Github)

Github or never happened!

vim-scripts.org by Scott Bronson (2010)

vim.org → vim-scraper → github

We have it good

Can we have it sweet?

Vundle by Marian Hratson (2010)

In your .vimrc

set nocompatiblefiletype off

set rtp+=~/.vim/bundle/vundle/call vundle#rc()Bundle 'gmarik/vundle'Bundle 'Align'Bundle 'camelcasemotion'Bundle 'majutsushi/tagbar'Bundle 'tpope/vim-abolish'Bundle 'sjl/gundo.vim'Bundle 'scrooloose/syntastic'

...filetype plugin indent on

The rest of your .vimrc...

In your .vimrc

set nocompatiblefiletype off

set rtp+=~/.vim/bundle/vundle/call vundle#rc()Bundle 'gmarik/vundle'Bundle 'Align'Bundle 'camelcasemotion'Bundle 'majutsushi/tagbar'Bundle 'tpope/vim-abolish'Bundle 'sjl/gundo.vim'Bundle 'scrooloose/syntastic'

...filetype plugin indent on

The rest of your .vimrc...

:BundleInstall!

Install new plugins

Upgrade all existing plugins

Delete unwanted plugins

Bonus: BundleSearch + install

Links

Photo: “Sugar Cubes” by Oliver Tupman

http://www.flickr.com/photos/olliesphotos/398669141

Pathogen:

https://github.com/tpope/vim-pathogen

Vundle:

https://github.com/gmarik/vundle

My vimrc and other configuration files:

https://github.com/jdevera/dotfiles

The license for these slides:

http://creativecommons.org/licenses/by-nc-sa/4.0/

VundleManaging Vim Plugins With Sanity

github.com/jdevera

Thank you