|
1 | | -" Plugins are managed by Vundle. Once VIM is open run :BundleInstall to |
| 1 | +" Plugins are managed by NeoBundle. Once VIM is open run :NeoBundleInstall to |
2 | 2 | " install plugins. |
| 3 | + call neobundle#begin(expand('~/.vim/bundle/')) |
| 4 | + |
| 5 | + " Let NeoBundle manage NeoBundle |
| 6 | + NeoBundleFetch 'Shougo/neobundle.vim' |
3 | 7 |
|
4 | 8 | " Plugins requiring no additional configuration or keymaps |
5 | | - Bundle "git://github.com/michaeljsmith/vim-indent-object.git" |
6 | | - Bundle "git://github.com/oscarh/vimerl.git" |
7 | | - Bundle "git://github.com/pangloss/vim-javascript.git" |
8 | | - Bundle "git://github.com/tomtom/tcomment_vim.git" |
9 | | - Bundle "git://github.com/tpope/vim-endwise.git" |
10 | | - Bundle "git://github.com/tpope/vim-fugitive.git" |
11 | | - Bundle "git://github.com/tpope/vim-haml.git" |
12 | | - Bundle "git://github.com/tpope/vim-rake.git" |
13 | | - Bundle "git://github.com/tpope/vim-repeat.git" |
14 | | - Bundle "git://github.com/vim-ruby/vim-ruby.git" |
15 | | - Bundle "git://github.com/vim-scripts/L9.git" |
16 | | - Bundle "git://github.com/vim-scripts/matchit.zip" |
17 | | - Bundle "git://github.com/vim-scripts/ruby-matchit.git" |
18 | | - Bundle "git://github.com/tpope/vim-abolish.git" |
19 | | - |
20 | | - " Vim airline configs |
21 | | - Plugin 'bling/vim-airline' |
| 9 | + NeoBundle "git://github.com/michaeljsmith/vim-indent-object.git" |
| 10 | + NeoBundle "git://github.com/oscarh/vimerl.git" |
| 11 | + NeoBundle "git://github.com/pangloss/vim-javascript.git" |
| 12 | + NeoBundle "git://github.com/tomtom/tcomment_vim.git" |
| 13 | + NeoBundle "git://github.com/tpope/vim-endwise.git" |
| 14 | + NeoBundle "git://github.com/tpope/vim-fugitive.git" |
| 15 | + NeoBundle "git://github.com/tpope/vim-haml.git" |
| 16 | + NeoBundle "git://github.com/tpope/vim-rake.git" |
| 17 | + NeoBundle "git://github.com/tpope/vim-repeat.git" |
| 18 | + NeoBundle "git://github.com/vim-ruby/vim-ruby.git" |
| 19 | + NeoBundle "git://github.com/vim-scripts/L9.git" |
| 20 | + NeoBundle "git://github.com/vim-scripts/matchit.zip" |
| 21 | + NeoBundle "git://github.com/vim-scripts/ruby-matchit.git" |
| 22 | + NeoBundle "git://github.com/tpope/vim-abolish.git" |
| 23 | + |
| 24 | + " Vim airline configs |
| 25 | + NeoBundle 'git://github.com/bling/vim-airline.git' |
22 | 26 | let g:airline_powerline_fonts = 1 |
23 | 27 | let g:airline_mode_map = { |
24 | 28 | \ '__' : '-', |
|
35 | 39 | \ } |
36 | 40 |
|
37 | 41 | " Easy motion config |
38 | | - Bundle "git://github.com/Lokaltog/vim-easymotion.git" |
| 42 | + NeoBundle "git://github.com/Lokaltog/vim-easymotion.git" |
39 | 43 |
|
40 | 44 | "Supertab code completion" |
41 | | - Bundle "git://github.com/ervandew/supertab.git" |
| 45 | + NeoBundle "git://github.com/ervandew/supertab.git" |
42 | 46 | let g:SuperTabContextDefaultCompletionType = "<c-n>" |
43 | 47 |
|
44 | 48 |
|
45 | 49 | " Dash Searching" |
46 | | - Bundle "git://github.com/rizzatti/funcoo.vim.git" |
47 | | - Bundle "git://github.com/rizzatti/dash.vim.git" |
| 50 | + NeoBundle "git://github.com/rizzatti/funcoo.vim.git" |
| 51 | + NeoBundle "git://github.com/rizzatti/dash.vim.git" |
48 | 52 | nmap <Leader>qs <Plug>DashSearch |
49 | 53 | nmap <Leader>qa <Plug>DashGlobalSearch |
50 | 54 |
|
51 | 55 |
|
52 | 56 | " CtrlP |
53 | | - Bundle "git://github.com/kien/ctrlp.vim.git" |
| 57 | + NeoBundle "git://github.com/kien/ctrlp.vim.git" |
54 | 58 | nnoremap <Leader>b :<C-U>CtrlPBuffer<CR> |
55 | 59 | nnoremap <Leader>t :<C-U>CtrlP<CR> |
56 | 60 | nnoremap <Leader>T :<C-U>CtrlPTag<CR> |
|
59 | 63 | let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'] |
60 | 64 |
|
61 | 65 | " Go |
62 | | - Bundle "git://github.com/jnwhiteh/vim-golang.git" |
| 66 | + NeoBundle "git://github.com/jnwhiteh/vim-golang.git" |
63 | 67 | au BufNewFile,BufRead *.go set filetype=go |
64 | 68 |
|
65 | 69 | " Slim |
66 | | - Bundle "git://github.com/slim-template/vim-slim.git" |
| 70 | + NeoBundle "git://github.com/slim-template/vim-slim.git" |
67 | 71 | au BufNewFile,BufRead *.slim set filetype=slim |
68 | 72 |
|
69 | 73 | " Less |
70 | | - Bundle "git://github.com/groenewege/vim-less.git" |
| 74 | + NeoBundle "git://github.com/groenewege/vim-less.git" |
71 | 75 | au BufNewFile,BufRead *.less set filetype=less |
72 | 76 |
|
73 | 77 | " Handlebars, Mustache, and Friends |
74 | | - Bundle "git://github.com/mustache/vim-mustache-handlebars.git" |
| 78 | + NeoBundle "git://github.com/mustache/vim-mustache-handlebars.git" |
75 | 79 | au BufNewFile,BufRead *.mustache,*.handlebars,*.hbs,*.hogan,*.hulk,*.hjs set filetype=html syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim |
76 | 80 |
|
77 | 81 | " Stylus |
78 | | - Bundle "git://github.com/wavded/vim-stylus.git" |
| 82 | + NeoBundle "git://github.com/wavded/vim-stylus.git" |
79 | 83 | au BufNewFile,BufRead *.styl set filetype=stylus |
80 | 84 |
|
81 | 85 | " Coffee script |
82 | | - Bundle "git://github.com/kchmck/vim-coffee-script.git" |
| 86 | + NeoBundle "git://github.com/kchmck/vim-coffee-script.git" |
83 | 87 | au BufNewFile,BufRead *.coffee set filetype=coffee |
84 | 88 |
|
85 | 89 | " AG aka The Silver Searcher |
86 | | - Bundle 'git://github.com/rking/ag.vim.git' |
| 90 | + NeoBundle 'git://github.com/rking/ag.vim.git' |
87 | 91 | nmap g/ :Ag!<space> |
88 | 92 | nmap g* :Ag! -w <C-R><C-W><space> |
89 | 93 | nmap ga :AgAdd!<space> |
|
94 | 98 |
|
95 | 99 |
|
96 | 100 | " Tagbar for navigation by tags using CTags |
97 | | - Bundle "git://github.com/majutsushi/tagbar.git" |
| 101 | + NeoBundle "git://github.com/majutsushi/tagbar.git" |
98 | 102 | let g:tagbar_autofocus = 1 |
99 | 103 | map <Leader>rt :!ctags --extra=+f -R *<CR><CR> |
100 | 104 | map <Leader>. :TagbarToggle<CR> |
101 | 105 |
|
102 | 106 | " Markdown syntax highlighting |
103 | | - Bundle "git://github.com/tpope/vim-markdown.git" |
| 107 | + NeoBundle "git://github.com/tpope/vim-markdown.git" |
104 | 108 | augroup mkd |
105 | 109 | autocmd BufNewFile,BufRead *.mkd set ai formatoptions=tcroqn2 comments=n:> filetype=markdown |
106 | 110 | autocmd BufNewFile,BufRead *.md set ai formatoptions=tcroqn2 comments=n:> filetype=markdown |
107 | 111 | autocmd BufNewFile,BufRead *.markdown set ai formatoptions=tcroqn2 comments=n:> filetype=markdown |
108 | 112 | augroup END |
109 | 113 |
|
110 | 114 | " NERDTree for project drawer |
111 | | - Bundle "git://github.com/scrooloose/nerdtree.git" |
| 115 | + NeoBundle "git://github.com/scrooloose/nerdtree.git" |
112 | 116 | let NERDTreeHijackNetrw = 0 |
113 | 117 | nmap <leader>g :NERDTreeToggle<CR> |
114 | 118 | nmap <leader>G :NERDTreeFind<CR> |
115 | 119 |
|
116 | 120 |
|
117 | 121 | " Tabular for aligning text |
118 | | - Bundle "git://github.com/godlygeek/tabular.git" |
| 122 | + NeoBundle "git://github.com/godlygeek/tabular.git" |
119 | 123 | function! CustomTabularPatterns() |
120 | 124 | if exists('g:tabular_loaded') |
121 | 125 | AddTabularPattern! symbols / :/l0 |
|
134 | 138 | map <Leader>a :Tabularize<space> |
135 | 139 |
|
136 | 140 | " ZoomWin to fullscreen a particular buffer without losing others |
137 | | - Bundle "git://github.com/vim-scripts/ZoomWin.git" |
| 141 | + NeoBundle "git://github.com/vim-scripts/ZoomWin.git" |
138 | 142 | map <Leader>z :ZoomWin<CR> |
139 | 143 |
|
140 | 144 |
|
141 | 145 | " Unimpaired for keymaps for quicky manipulating lines and files |
142 | | - Bundle "git://github.com/tpope/vim-unimpaired.git" |
| 146 | + NeoBundle "git://github.com/tpope/vim-unimpaired.git" |
143 | 147 | " Bubble single lines |
144 | 148 | nmap <C-Up> [e |
145 | 149 | nmap <C-Down> ]e |
|
150 | 154 |
|
151 | 155 |
|
152 | 156 | " Syntastic for catching syntax errors on save |
153 | | - Bundle "git://github.com/scrooloose/syntastic.git" |
| 157 | + NeoBundle "git://github.com/scrooloose/syntastic.git" |
154 | 158 | let g:syntastic_enable_signs=1 |
155 | 159 | let g:syntastic_quiet_messages = {'level': 'warning'} |
156 | 160 | " syntastic is too slow for haml and sass |
|
160 | 164 |
|
161 | 165 |
|
162 | 166 | " gundo for awesome undo tree visualization |
163 | | - Bundle "git://github.com/sjl/gundo.vim.git" |
| 167 | + NeoBundle "git://github.com/sjl/gundo.vim.git" |
164 | 168 | map <Leader>h :GundoToggle<CR> |
165 | 169 |
|
166 | 170 |
|
167 | 171 | " rails.vim, nuff' said |
168 | | - Bundle "git://github.com/tpope/vim-rails.git" |
| 172 | + NeoBundle "git://github.com/tpope/vim-rails.git" |
169 | 173 | map <Leader>oc :Rcontroller<Space> |
170 | 174 | map <Leader>ov :Rview<Space> |
171 | 175 | map <Leader>om :Rmodel<Space> |
|
176 | 180 |
|
177 | 181 |
|
178 | 182 | " surround for adding surround 'physics' |
179 | | - Bundle "git://github.com/tpope/vim-surround.git" |
| 183 | + NeoBundle "git://github.com/tpope/vim-surround.git" |
180 | 184 | " # to surround with ruby string interpolation |
181 | 185 | let g:surround_35 = "#{\r}" |
182 | 186 | " - to surround with no-output erb tag |
|
186 | 190 |
|
187 | 191 |
|
188 | 192 | " Clojure Highlighting" |
189 | | - Bundle "git://github.com/tpope/vim-fireplace.git" |
190 | | - Bundle "git://github.com/tpope/vim-classpath.git" |
191 | | - Bundle "git://github.com/guns/vim-clojure-static.git" |
192 | | - Bundle "git://github.com/vim-scripts/paredit.vim" |
193 | | - Bundle "git://github.com/amdt/vim-niji.git" |
| 193 | + NeoBundle "git://github.com/tpope/vim-fireplace.git" |
| 194 | + NeoBundle "git://github.com/tpope/vim-classpath.git" |
| 195 | + NeoBundle "git://github.com/guns/vim-clojure-static.git" |
| 196 | + NeoBundle "git://github.com/vim-scripts/paredit.vim" |
| 197 | + NeoBundle "git://github.com/amdt/vim-niji.git" |
194 | 198 | autocmd BufNewFile,BufRead *.clj set filetype=clojure |
195 | 199 | autocmd BufNewFile,BufRead *.edn set filetype=clojure |
196 | 200 | autocmd BufNewFile,BufRead *.cljs set filetype=clojure |
|
200 | 204 | let vimclojure#ParenRainbow = 1 |
201 | 205 |
|
202 | 206 | " Jade Highlighting" |
203 | | - Bundle "git://github.com/digitaltoad/vim-jade.git" |
| 207 | + NeoBundle "git://github.com/digitaltoad/vim-jade.git" |
204 | 208 | autocmd BufNewFile,BufRead *.jade set filetype=jade |
205 | 209 |
|
206 | 210 | " Scala Highlighting" |
207 | | - Bundle "git://github.com/derekwyatt/vim-scala.git" |
| 211 | + NeoBundle "git://github.com/derekwyatt/vim-scala.git" |
208 | 212 | autocmd BufNewFile,BufRead *.scala set filetype=scala |
209 | 213 |
|
210 | 214 | " Elixir plugin |
211 | | - Bundle "git://github.com/elixir-lang/vim-elixir.git" |
| 215 | + NeoBundle "git://github.com/elixir-lang/vim-elixir.git" |
212 | 216 | au BufNewFile,BufRead *.ex set filetype=elixir |
213 | 217 | au BufNewFile,BufRead *.exs set filetype=elixir |
214 | 218 |
|
215 | 219 | " Rust! |
216 | | - Plugin 'wting/rust.vim' |
217 | | - |
| 220 | + NeoBundle 'git://github.com/bling/vim-airline.git' |
| 221 | + |
| 222 | + call neobundle#end() |
| 223 | + |
| 224 | +" Easy async RSpec running |
| 225 | + Bundle 'thoughtbot/vim-rspec' |
| 226 | + Bundle "git://github.com/tpope/vim-dispatch.git" |
| 227 | + let g:rspec_command = "Dispatch rspec --format=progress --no-profile {spec}" |
| 228 | + nmap <Leader>rc :wa<CR> :call RunCurrentSpecFile()<CR> |
| 229 | + nmap <Leader>rn :wa<CR> :call RunNearestSpec()<CR> |
| 230 | + nmap <Leader>rl :wa<CR> :call RunLastSpec()<CR> |
| 231 | + nmap <Leader>ra :wa<CR> :call RunAllSpecs()<CR> |
0 commit comments