Skip to content

Commit 5d176bb

Browse files
committed
Upgrade Vundle to NeoBundle
NeoBundle is similar to Vundle but better. See README for upgrade instructions.
1 parent 8346305 commit 5d176bb

File tree

5 files changed

+146
-88
lines changed

5 files changed

+146
-88
lines changed

Changelog

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* experimental
2+
- upgrade to NeoBundle. IMPORTANT: See readme for upgrade instructions
3+
14
* 2014-02-05
25
- golang syntax support (thanks @torkale)
36
- josemarluedke/vim-rspec - lightweight Rspec runner for Vim (@torkale)

Makefile

+39-15
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,53 @@
22
# line variable
33
RUBY ?= $(shell ./find-ruby.sh)
44

5-
update: install-vundle bundles compile-command-t
6-
7-
upgrade: upgrade-bundles compile-command-t
8-
9-
install: delete update
5+
default: install
106

7+
.PHONY: delete git-cleanup cleanup compile-command-t compile-vimproc compile install reinstall help
118
delete:
129
@echo going to remove the bundle directory. press ENTER to continue.
1310
@read something
1411
rm -rf bundle
1512

16-
install-vundle:
17-
test -d bundle/vundle || (mkdir -p bundle && cd bundle && git clone https://github.com/gmarik/vundle.git)
18-
19-
bundles:
20-
vim -u ./bundles.vim +BundleClean! +BundleInstall
21-
22-
cleanup-bundles:
13+
NEOBUNDLE := bundle/neobundle.vim
14+
${NEOBUNDLE}:
15+
@echo
16+
@echo
17+
@echo '**************************************************************'
18+
@echo '* UPGRADING vundle => neobundle *'
19+
@echo '* *'
20+
@echo '* Your existing vundle repository will be DELETED!!!! *'
21+
@echo '* press ENTER to continue, Ctrl-C to stop *'
22+
@echo '**************************************************************'
23+
@read a
24+
rm -rf bundle/vundle
25+
mkdir -p bundle && cd bundle && git clone https://github.com/Shougo/neobundle.vim.git
26+
@echo
27+
@echo '**************************************************************************'
28+
@echo '* DONE! You might need to upgrade your bundles.vim to the new format. *'
29+
@echo '* see https://github.com/Shougo/neobundle.vim *'
30+
@echo '**************************************************************************'
31+
@echo
32+
33+
git-cleanup:
2334
ls bundle | while read b;do (cd bundle/$$b && git clean -f);done
2435

25-
upgrade-bundles: cleanup-bundles
26-
vim -u ./bundles.vim +BundleClean! +BundleInstall!
36+
cleanup:
37+
vim -u bundles.vim +NeoBundleClean +NeoBundleCheck +NeoBundleDocs
2738

28-
# only run compilation if bundle installed
2939
compile-command-t:
3040
test ! -d bundle/Command-T || (cd bundle/Command-T/ruby/command-t/ && $(RUBY) extconf.rb && make)
41+
42+
compile-vimproc:
43+
test ! -d bundle/vimproc || make -C bundle/vimproc
44+
45+
compile: compile-command-t compile-vimproc
46+
47+
install: ${NEOBUNDLE} cleanup compile
48+
49+
reinstall: delete install
50+
51+
help:
52+
@echo 'make help print this message'
53+
@echo 'make install (default) make sure all bundles installed and compiled'
54+
@echo 'make reinstall [DANGEROUS!] - remove bundles and reinstall'

README.markdown

+23-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ All the right plugins are in. Nerdtree, CtrlP, you name it.
77
The focus is on supporting Rails, but there is a lot of generic stuff too, so
88
it will surely serve you well with any language of your choice.
99

10-
The config is using [Vundle](http://github.com/gmarik/vundle) for easy
11-
upgrading.
10+
The config is using [NeoBundle](https://github.com/Shougo/neobundle.vim) for easy
11+
upgrading. The list of installed bundles is in the `bundles.vim`
12+
13+
> IMPORTANT: See [upgrade](#upgrade_neobundle) if you have an older Vundle
14+
> based install.
1215
1316
*Some* help tips are provided for *some* of the plugins. please check out the
1417
plugin's docs for more info.
@@ -23,6 +26,7 @@ announcements of new versions, tips, etc.
2326
#### Contents
2427

2528
* [Installation](#installation)
29+
* [Neobundle upgrade](#upgrade_neobundle)
2630
* [General Configuration](#general)
2731
* [Local configuration](#local)
2832
* [Backups](#backups)
@@ -105,6 +109,23 @@ From your homedirectory (on Linux/Mac OSX):
105109
106110
[top](#top)
107111

112+
<a name=upgrade_neobundle>
113+
#### Neobundle Upgrade
114+
115+
Dotvim was updated to use Neobundle instead of Vundle. NeoBundle is mostly
116+
similar but supports more ways to install bundles, better install, locked
117+
revisions and more.
118+
119+
To upgrade from an older Vundle based setup simply pull the latest version and
120+
run `make`.
121+
122+
> Note: if you modified your `bundles.vim` you will need to replace all
123+
> instances of `Bundle` with `NeoBundle` in it. Until you do your vim might
124+
> print error messages during startup. ignore them and fix the `bundles.vim`,
125+
> then run `make`.
126+
127+
[top](#top)
128+
108129
<a name=general>
109130
#### General configuration
110131

after.vim

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
" This file is loaded from after/plugin/after.vim
22
" which means it loads AFTER the rest of the plugins
33

4+
NeoBundleCheck
5+
NeoBundleDocs
6+
47
source ~/.vim/bindings.vim
58
source ~/.vim/plugins-override.vim
69

bundles.vim

+78-71
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,137 @@
11
set nocompatible
22
filetype off
3-
set rtp+=~/.vim/bundle/vundle/
4-
call vundle#rc()
3+
4+
if has('vim_starting')
5+
set runtimepath+=~/.vim/bundle/neobundle.vim/
6+
endif
7+
8+
call neobundle#rc(expand('~/.vim/bundle/'))
59

610
" plugin management
7-
Bundle 'gmarik/vundle'
11+
NeoBundleFetch 'Shougo/neobundle.vim'
812

913
" file tree
10-
Bundle 'scrooloose/nerdtree'
14+
NeoBundle 'scrooloose/nerdtree'
1115
" file tree and tabs interaction
12-
Bundle 'jistr/vim-nerdtree-tabs'
16+
NeoBundle 'jistr/vim-nerdtree-tabs'
1317
" commenting
14-
Bundle 'scrooloose/nerdcommenter'
18+
NeoBundle 'scrooloose/nerdcommenter'
1519
" fuzzy file open
16-
Bundle 'kien/ctrlp.vim'
20+
NeoBundle 'kien/ctrlp.vim'
1721
" popup completion menu
18-
Bundle 'AutoComplPop'
22+
NeoBundle 'AutoComplPop'
1923
" tags list navigation
20-
Bundle 'taglist.vim'
24+
NeoBundle 'taglist.vim'
2125
" yank history
22-
Bundle 'YankRing.vim'
26+
NeoBundle 'YankRing.vim'
2327
" git integration
24-
Bundle 'tpope/vim-fugitive'
28+
NeoBundle 'tpope/vim-fugitive'
2529
" syntax checking on save
26-
Bundle 'scrooloose/syntastic'
30+
NeoBundle 'scrooloose/syntastic'
2731
" TextMate-style snippets
28-
Bundle 'msanders/snipmate.vim'
32+
NeoBundle 'msanders/snipmate.vim'
2933
" manipulation of surraunding parens, quotes, etc.
30-
Bundle 'tpope/vim-surround'
34+
NeoBundle 'tpope/vim-surround'
3135
" vertical alignment tool
32-
Bundle 'tsaleh/vim-align'
36+
NeoBundle 'tsaleh/vim-align'
3337
" 'ag' searching integration
34-
Bundle 'rking/ag.vim'
38+
NeoBundle 'rking/ag.vim'
3539
" text object based on indent level (ai, ii)
36-
Bundle 'austintaylor/vim-indentobject'
40+
NeoBundle 'austintaylor/vim-indentobject'
3741
" global search & replace
38-
Bundle 'greplace.vim'
42+
NeoBundle 'greplace.vim'
3943
" better looking statusline
40-
Bundle 'astrails/vim-powerline'
44+
NeoBundle 'astrails/vim-powerline'
4145
" plugin for resolving three-way merge conflicts
42-
Bundle 'sjl/splice.vim'
46+
NeoBundle 'sjl/splice.vim'
4347
" plugin for visually displaying indent levels
44-
Bundle 'Indent-Guides'
48+
NeoBundle 'Indent-Guides'
4549
" end certain structures automatically, e.g. begin/end etc.
46-
Bundle 'tpope/vim-endwise'
50+
NeoBundle 'tpope/vim-endwise'
4751
" automatic closing of quotes, parenthesis, brackets, etc.
48-
Bundle 'Raimondi/delimitMate'
52+
NeoBundle 'Raimondi/delimitMate'
4953
" calendar, duh!
50-
Bundle 'calendar.vim--Matsumoto'
54+
NeoBundle 'calendar.vim--Matsumoto'
5155
" A Narrow Region Plugin (similar to Emacs)
52-
Bundle 'chrisbra/NrrwRgn'
56+
NeoBundle 'chrisbra/NrrwRgn'
5357
" url based hyperlinks for text files
54-
Bundle 'utl.vim'
58+
NeoBundle 'utl.vim'
5559
" A clone of Emacs' Org-mode for Vim
56-
Bundle 'hsitz/VimOrganizer'
60+
NeoBundle 'hsitz/VimOrganizer'
5761
" visual undo tree
58-
Bundle 'sjl/gundo.vim'
62+
NeoBundle 'sjl/gundo.vim'
5963
" switch segments of text with predefined replacements. e.g. '' -> ""
60-
Bundle 'AndrewRadev/switch.vim'
64+
NeoBundle 'AndrewRadev/switch.vim'
6165
" async external commands with output in vim
62-
Bundle 'tpope/vim-dispatch'
66+
NeoBundle 'tpope/vim-dispatch'
6367
" git diff in the gutter (sign column) and stages/reverts hunks
64-
Bundle 'airblade/vim-gitgutter'
68+
NeoBundle 'airblade/vim-gitgutter'
6569

6670
" Ruby/Rails
6771

6872
" rails support
69-
Bundle 'tpope/vim-rails'
73+
NeoBundle 'tpope/vim-rails'
7074
" bundler integration (e.g. :Bopen)
71-
Bundle 'tpope/vim-bundler'
75+
NeoBundle 'tpope/vim-bundler'
7276
" rake integration
73-
Bundle 'tpope/vim-rake'
77+
NeoBundle 'tpope/vim-rake'
7478
" A custom text object for selecting ruby blocks (ar/ir)
75-
Bundle 'nelstrom/vim-textobj-rubyblock'
79+
NeoBundle 'nelstrom/vim-textobj-rubyblock'
7680
" ruby refactoring
77-
Bundle 'ecomba/vim-ruby-refactoring'
81+
NeoBundle 'ecomba/vim-ruby-refactoring'
7882
" apidock.com docs integration
79-
Bundle 'apidock.vim'
83+
NeoBundle 'apidock.vim'
8084
" toggle ruby blocks style
81-
Bundle 'vim-scripts/blockle.vim'
85+
NeoBundle 'vim-scripts/blockle.vim'
8286
" lightweight Rspec runner for Vim
83-
Bundle 'josemarluedke/vim-rspec'
87+
NeoBundle 'josemarluedke/vim-rspec'
8488

8589
" color themes
86-
Bundle 'altercation/vim-colors-solarized'
87-
Bundle 'tpope/vim-vividchalk'
88-
Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
90+
NeoBundle 'altercation/vim-colors-solarized'
91+
NeoBundle 'tpope/vim-vividchalk'
92+
NeoBundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
8993

9094
" syntax support
91-
Bundle 'vim-ruby/vim-ruby'
92-
Bundle 'tsaleh/vim-tmux'
93-
Bundle 'Puppet-Syntax-Highlighting'
94-
Bundle 'JSON.vim'
95-
Bundle 'tpope/vim-cucumber'
96-
Bundle 'tpope/vim-haml'
97-
Bundle 'tpope/vim-markdown'
98-
Bundle 'kchmck/vim-coffee-script'
99-
Bundle 'vitaly/vim-syntastic-coffee'
100-
Bundle 'vim-scripts/jade.vim'
101-
Bundle 'wavded/vim-stylus'
102-
Bundle 'VimClojure'
103-
Bundle 'slim-template/vim-slim'
104-
Bundle 'elixir-lang/vim-elixir'
105-
Bundle 'Blackrush/vim-gocode'
106-
Bundle 'ekalinin/Dockerfile.vim'
95+
NeoBundle 'vim-ruby/vim-ruby'
96+
NeoBundle 'tsaleh/vim-tmux'
97+
NeoBundle 'Puppet-Syntax-Highlighting'
98+
NeoBundle 'JSON.vim'
99+
NeoBundle 'tpope/vim-cucumber'
100+
NeoBundle 'tpope/vim-haml'
101+
NeoBundle 'tpope/vim-markdown'
102+
NeoBundle 'kchmck/vim-coffee-script'
103+
NeoBundle 'vitaly/vim-syntastic-coffee'
104+
NeoBundle 'vim-scripts/jade.vim'
105+
NeoBundle 'wavded/vim-stylus'
106+
NeoBundle 'VimClojure'
107+
NeoBundle 'slim-template/vim-slim'
108+
NeoBundle 'elixir-lang/vim-elixir'
109+
NeoBundle 'Blackrush/vim-gocode'
110+
NeoBundle 'ekalinin/Dockerfile.vim'
107111

108112
" Support and minor
109113

110114
" Support for user-defined text objects
111-
Bundle 'kana/vim-textobj-user'
115+
NeoBundle 'kana/vim-textobj-user'
112116
" replacement for the repeat mapping (.) to support plugins
113-
Bundle 'tpope/vim-repeat'
117+
NeoBundle 'tpope/vim-repeat'
114118
" hide .gitignore-d files from vim
115-
Bundle 'vitaly/vim-gitignore'
119+
NeoBundle 'vitaly/vim-gitignore'
116120
" repeat motion with <Space>
117-
Bundle 'scrooloose/vim-space'
121+
NeoBundle 'scrooloose/vim-space'
118122
" Github's gist support
119-
Bundle 'mattn/gist-vim'
123+
NeoBundle 'mattn/gist-vim'
120124
" web APIs support
121-
Bundle 'mattn/webapi-vim'
125+
NeoBundle 'mattn/webapi-vim'
126+
127+
"NeoBundle 'ShowMarks'
128+
"NeoBundle 'tpope/vim-unimpaired'
129+
"NeoBundle 'reinh/vim-makegreen'
130+
131+
NeoBundle 'Shougo/vimproc'
132+
NeoBundle 'Shougo/unite.vim'
133+
NeoBundle 'Shougo/unite-outline'
134+
NeoBundle 'ujihisa/unite-colorscheme'
122135

123-
"Bundle 'ShowMarks'
124-
"Bundle 'tpope/vim-unimpaired'
125-
"Bundle 'reinh/vim-makegreen'
136+
filetype plugin indent on
126137

127-
Bundle 'Shougo/vimproc'
128-
Bundle 'Shougo/unite.vim'
129-
Bundle 'Shougo/unite-outline'
130-
Bundle 'ujihisa/unite-colorscheme'

0 commit comments

Comments
 (0)