27
Vundle Managing Vim Plugins With Sanity github.com/jdevera

Vundle: Managing Vim Plugins With Sanity

Embed Size (px)

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

Page 1: Vundle: Managing Vim Plugins With Sanity

VundleManaging Vim Plugins With Sanity

github.com/jdevera

Page 2: Vundle: Managing Vim Plugins With Sanity
Page 3: Vundle: Managing Vim Plugins With Sanity

vim.org → zip file → ~/.vim

Page 4: Vundle: Managing Vim Plugins With Sanity

The Mess: Name Clashes

Plugin Fooplugin/foo.vim

plugin/utils.vim

doc/foo.txt

Plugin Barplugin/bar.vim

plugin/utils.vim

doc/bar.txt

Page 5: Vundle: Managing Vim Plugins With Sanity

The Mess:Good Luck Deleting That Plugin!

Page 6: Vundle: Managing Vim Plugins With Sanity

The Mess:Good Luck Updating That Plugin!

Page 7: Vundle: Managing Vim Plugins With Sanity

Pathogen by Tim Pope (2008)

Page 8: Vundle: Managing Vim Plugins With Sanity

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

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

Page 9: Vundle: Managing Vim Plugins With Sanity

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

Page 10: Vundle: Managing Vim Plugins With Sanity

Problems solved?

Page 11: Vundle: Managing Vim Plugins With Sanity

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

Page 12: Vundle: Managing Vim Plugins With Sanity

Github or never happened!

Page 13: Vundle: Managing Vim Plugins With Sanity

vim-scripts.org by Scott Bronson (2010)

Page 14: Vundle: Managing Vim Plugins With Sanity

vim.org → vim-scraper → github

Page 15: Vundle: Managing Vim Plugins With Sanity

We have it good

Can we have it sweet?

Page 16: Vundle: Managing Vim Plugins With Sanity

Vundle by Marian Hratson (2010)

Page 17: Vundle: Managing Vim Plugins With Sanity

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...

Page 18: Vundle: Managing Vim Plugins With Sanity

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...

Page 19: Vundle: Managing Vim Plugins With Sanity

:BundleInstall!

Page 20: Vundle: Managing Vim Plugins With Sanity
Page 21: Vundle: Managing Vim Plugins With Sanity

Install new plugins

Page 22: Vundle: Managing Vim Plugins With Sanity

Upgrade all existing plugins

Page 23: Vundle: Managing Vim Plugins With Sanity

Delete unwanted plugins

Page 24: Vundle: Managing Vim Plugins With Sanity

Bonus: BundleSearch + install

Page 25: Vundle: Managing Vim Plugins With Sanity
Page 26: Vundle: Managing Vim Plugins With Sanity

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/

Page 27: Vundle: Managing Vim Plugins With Sanity

VundleManaging Vim Plugins With Sanity

github.com/jdevera

Thank you