Skip to content

Commit 7dfd070

Browse files
author
Edgecase Pairing
committed
Merge branch 'master' into preconfig
Conflicts: .gitignore README.md
2 parents 3da6403 + d83a70f commit 7dfd070

6 files changed

Lines changed: 74 additions & 63 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.vim/custom_config
22
.vim/custom_preconfig
3+
.vim/.netrwhist

.gvimrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
set guioptions-=r
99
set guioptions-=L
1010

11-
" transparency
12-
set transparency=5
13-
1411
" go full screen like you mean it
1512
if has('win32')
1613
au GUIEnter * simalt ~x
Lines changed: 64 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
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
22
" install plugins.
3+
call neobundle#begin(expand('~/.vim/bundle/'))
4+
5+
" Let NeoBundle manage NeoBundle
6+
NeoBundleFetch 'Shougo/neobundle.vim'
37

48
" 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'
2226
let g:airline_powerline_fonts = 1
2327
let g:airline_mode_map = {
2428
\ '__' : '-',
@@ -35,22 +39,22 @@
3539
\ }
3640

3741
" Easy motion config
38-
Bundle "git://github.com/Lokaltog/vim-easymotion.git"
42+
NeoBundle "git://github.com/Lokaltog/vim-easymotion.git"
3943

4044
"Supertab code completion"
41-
Bundle "git://github.com/ervandew/supertab.git"
45+
NeoBundle "git://github.com/ervandew/supertab.git"
4246
let g:SuperTabContextDefaultCompletionType = "<c-n>"
4347

4448

4549
" 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"
4852
nmap <Leader>qs <Plug>DashSearch
4953
nmap <Leader>qa <Plug>DashGlobalSearch
5054
5155

5256
" CtrlP
53-
Bundle "git://github.com/kien/ctrlp.vim.git"
57+
NeoBundle "git://github.com/kien/ctrlp.vim.git"
5458
nnoremap <Leader>b :<C-U>CtrlPBuffer<CR>
5559
nnoremap <Leader>t :<C-U>CtrlP<CR>
5660
nnoremap <Leader>T :<C-U>CtrlPTag<CR>
@@ -59,31 +63,31 @@
5963
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others']
6064

6165
" Go
62-
Bundle "git://github.com/jnwhiteh/vim-golang.git"
66+
NeoBundle "git://github.com/jnwhiteh/vim-golang.git"
6367
au BufNewFile,BufRead *.go set filetype=go
6468

6569
" Slim
66-
Bundle "git://github.com/slim-template/vim-slim.git"
70+
NeoBundle "git://github.com/slim-template/vim-slim.git"
6771
au BufNewFile,BufRead *.slim set filetype=slim
6872

6973
" Less
70-
Bundle "git://github.com/groenewege/vim-less.git"
74+
NeoBundle "git://github.com/groenewege/vim-less.git"
7175
au BufNewFile,BufRead *.less set filetype=less
7276

7377
" Handlebars, Mustache, and Friends
74-
Bundle "git://github.com/mustache/vim-mustache-handlebars.git"
78+
NeoBundle "git://github.com/mustache/vim-mustache-handlebars.git"
7579
au BufNewFile,BufRead *.mustache,*.handlebars,*.hbs,*.hogan,*.hulk,*.hjs set filetype=html syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
7680

7781
" Stylus
78-
Bundle "git://github.com/wavded/vim-stylus.git"
82+
NeoBundle "git://github.com/wavded/vim-stylus.git"
7983
au BufNewFile,BufRead *.styl set filetype=stylus
8084

8185
" Coffee script
82-
Bundle "git://github.com/kchmck/vim-coffee-script.git"
86+
NeoBundle "git://github.com/kchmck/vim-coffee-script.git"
8387
au BufNewFile,BufRead *.coffee set filetype=coffee
8488

8589
" AG aka The Silver Searcher
86-
Bundle 'git://github.com/rking/ag.vim.git'
90+
NeoBundle 'git://github.com/rking/ag.vim.git'
8791
nmap g/ :Ag!<space>
8892
nmap g* :Ag! -w <C-R><C-W><space>
8993
nmap ga :AgAdd!<space>
@@ -94,28 +98,28 @@
9498
9599

96100
" Tagbar for navigation by tags using CTags
97-
Bundle "git://github.com/majutsushi/tagbar.git"
101+
NeoBundle "git://github.com/majutsushi/tagbar.git"
98102
let g:tagbar_autofocus = 1
99103
map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
100104
map <Leader>. :TagbarToggle<CR>
101105
102106
" Markdown syntax highlighting
103-
Bundle "git://github.com/tpope/vim-markdown.git"
107+
NeoBundle "git://github.com/tpope/vim-markdown.git"
104108
augroup mkd
105109
autocmd BufNewFile,BufRead *.mkd set ai formatoptions=tcroqn2 comments=n:> filetype=markdown
106110
autocmd BufNewFile,BufRead *.md set ai formatoptions=tcroqn2 comments=n:> filetype=markdown
107111
autocmd BufNewFile,BufRead *.markdown set ai formatoptions=tcroqn2 comments=n:> filetype=markdown
108112
augroup END
109113

110114
" NERDTree for project drawer
111-
Bundle "git://github.com/scrooloose/nerdtree.git"
115+
NeoBundle "git://github.com/scrooloose/nerdtree.git"
112116
let NERDTreeHijackNetrw = 0
113117
nmap <leader>g :NERDTreeToggle<CR>
114118
nmap <leader>G :NERDTreeFind<CR>
115119
116120

117121
" Tabular for aligning text
118-
Bundle "git://github.com/godlygeek/tabular.git"
122+
NeoBundle "git://github.com/godlygeek/tabular.git"
119123
function! CustomTabularPatterns()
120124
if exists('g:tabular_loaded')
121125
AddTabularPattern! symbols / :/l0
@@ -134,12 +138,12 @@
134138
map <Leader>a :Tabularize<space>
135139
136140
" 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"
138142
map <Leader>z :ZoomWin<CR>
139143
140144

141145
" 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"
143147
" Bubble single lines
144148
nmap <C-Up> [e
145149
nmap <C-Down> ]e
@@ -150,7 +154,7 @@
150154
151155

152156
" Syntastic for catching syntax errors on save
153-
Bundle "git://github.com/scrooloose/syntastic.git"
157+
NeoBundle "git://github.com/scrooloose/syntastic.git"
154158
let g:syntastic_enable_signs=1
155159
let g:syntastic_quiet_messages = {'level': 'warning'}
156160
" syntastic is too slow for haml and sass
@@ -160,12 +164,12 @@
160164

161165

162166
" gundo for awesome undo tree visualization
163-
Bundle "git://github.com/sjl/gundo.vim.git"
167+
NeoBundle "git://github.com/sjl/gundo.vim.git"
164168
map <Leader>h :GundoToggle<CR>
165169
166170

167171
" rails.vim, nuff' said
168-
Bundle "git://github.com/tpope/vim-rails.git"
172+
NeoBundle "git://github.com/tpope/vim-rails.git"
169173
map <Leader>oc :Rcontroller<Space>
170174
map <Leader>ov :Rview<Space>
171175
map <Leader>om :Rmodel<Space>
@@ -176,7 +180,7 @@
176180
177181

178182
" surround for adding surround 'physics'
179-
Bundle "git://github.com/tpope/vim-surround.git"
183+
NeoBundle "git://github.com/tpope/vim-surround.git"
180184
" # to surround with ruby string interpolation
181185
let g:surround_35 = "#{\r}"
182186
" - to surround with no-output erb tag
@@ -186,11 +190,11 @@
186190

187191

188192
" 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"
194198
autocmd BufNewFile,BufRead *.clj set filetype=clojure
195199
autocmd BufNewFile,BufRead *.edn set filetype=clojure
196200
autocmd BufNewFile,BufRead *.cljs set filetype=clojure
@@ -200,18 +204,28 @@
200204
let vimclojure#ParenRainbow = 1
201205

202206
" Jade Highlighting"
203-
Bundle "git://github.com/digitaltoad/vim-jade.git"
207+
NeoBundle "git://github.com/digitaltoad/vim-jade.git"
204208
autocmd BufNewFile,BufRead *.jade set filetype=jade
205209

206210
" Scala Highlighting"
207-
Bundle "git://github.com/derekwyatt/vim-scala.git"
211+
NeoBundle "git://github.com/derekwyatt/vim-scala.git"
208212
autocmd BufNewFile,BufRead *.scala set filetype=scala
209213

210214
" Elixir plugin
211-
Bundle "git://github.com/elixir-lang/vim-elixir.git"
215+
NeoBundle "git://github.com/elixir-lang/vim-elixir.git"
212216
au BufNewFile,BufRead *.ex set filetype=elixir
213217
au BufNewFile,BufRead *.exs set filetype=elixir
214218

215219
" 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>

.vimrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
set rtp+=~/.vim/vundle.git/
2-
call vundle#rc()
1+
set rtp+=~/.vim/bundle/neobundle.vim/
32

43
runtime! custom_preconfig/*.vim
54
runtime! common_config/*.vim

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Windows users: be sure to use **RailsInstaller** > **Command Prompt with Ruby an
2626
2. `cd vim-config`
2727
3. `rake` (This will symlink the necessary files to your home directory, asking for permission before clobbering anything.)
2828
4. `vim` (or in Windows: `gvim`)
29-
5. `:BundleClean` (if you have previously used this Neo Vim config)
30-
6. `:BundleInstall` (This will clone and install all of the plugins from github.)
29+
5. `:NeoBundleClean` (if you have previously used this Neo Vim config)
30+
6. `:NeoBundleInstall` (This will clone and install all of the plugins from github.)
3131

3232
## Customizing
3333

@@ -38,7 +38,7 @@ Customizations can be added to the folder `.vim/custom_preconfig/` or `.vim/cust
3838

3939
The custom_preconfig settings are loaded prior to the common config. A common usecase for this is to reset mapleader. Most of the rest of the customizations are placed in custom_config.
4040

41-
You can add custom plugins by registering them in a `.vim` file in the custom_config folder with the same `Bundle "plugin-repo-url"`
41+
You can add custom plugins by registering them in a `.vim` file in the custom_config folder with the same `NeoBundle "plugin-repo-url"`
4242
syntax used in the `.vim/common_config/plugin_config.vim`, and then performing steps 3 & 4 from the install steps above.
4343

4444
Common practice is to symlink a folder containing your custom configuration files as the `.vim/custom_config` folder.
@@ -226,7 +226,7 @@ functionality to your vim projects. You can learn more about it with
226226
`:help NERDTree`.
227227

228228
**Customizations**:
229-
Use `gt` to toggle NERDTree
229+
Use `<leader>g` to toggle NERDTree
230230

231231
## Tabular
232232

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ task :default do
2727
Rake::Task['vundle'].execute
2828
end
2929

30-
desc "Install vundle for vim plugins"
30+
desc "Install neobundle for vim plugins"
3131
task :vundle do
32-
target = "#{platform_files['.vim']}/vundle.git"
33-
Installer.git_clone('http://github.com/gmarik/Vundle.vim.git', target)
32+
target = "#{platform_files['.vim']}/bundle/neobundle.vim"
33+
Installer.git_clone('https://github.com/Shougo/neobundle.vim', target)
3434
puts "Running BundleInstall to install plugins...this will take a couple minutes."
35-
`vim +BundleInstall +qall`
35+
`vim +NeoBundleInstall +qall`
3636
puts "vim plugins installed."
3737
end
3838

0 commit comments

Comments
 (0)