forked from mutewinter/dot_vim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimux.vim
More file actions
19 lines (18 loc) · 830 Bytes
/
vimux.vim
File metadata and controls
19 lines (18 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if exists('g:vundle_installing_plugins')
Plugin 'benmills/vimux'
finish
endif
let g:VimuxUseNearestPane = 1
nnoremap <leader>a :call VimuxRunCommand("spring rspec --fail-fast")<CR>
nnoremap <leader>A :call VimuxRunCommand("spring rspec")<CR>
nnoremap <leader>cu :call VimuxRunCommand("spring cucumber")<CR>
nnoremap <leader>ca :call VimuxRunCommand("spring cucumber; spring rspec")<CR>
nnoremap <leader>cm :VimuxPromptCommand<CR>
function WriteAndVimuxRunLastCommand()
:call WriteBufferIfNecessary()
:call VimuxRunLastCommand()
endfunction
nnoremap <leader>w :call WriteAndVimuxRunLastCommand()<CR>
command! REmigrate :call VimuxRunCommand("rake db:drop db:create db:migrate test:prepare")
command! Migrate :call VimuxRunCommand("rake db:migrate test:prepare")
command! Rollback :call VimuxRunCommand("rake db:rollback")