Skip to content

Commit

Permalink
Add Vimux plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanbashir committed Jun 22, 2016
1 parent c685912 commit 9a26c16
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Plug 'roblillack/vim-bufferlist'
Plug 'Shougo/neocomplcache.vim' | Plug 'Shougo/unite.vim' | Plug 'Shougo/vimproc.vim', {'do': 'make'} | Plug 'Shougo/vimshell.vim'
Plug 'Valloric/YouCompleteMe'
Plug 'airblade/vim-gitgutter'
Plug 'benmills/vimux'

call plug#end()

Expand Down Expand Up @@ -374,6 +375,32 @@ omap ah <Plug>GitGutterTextObjectOuterPending
xmap ih <Plug>GitGutterTextObjectInnerVisual
xmap ah <Plug>GitGutterTextObjectOuterVisual
" Vimux

" Run the current Ruby file through Docker
map <Leader>rd :call VimuxRunCommand("eval $(docker-machine env) && docker-compose exec web ruby " . bufname("%"))<CR>
" Prompt for a command to run
map <Leader>vp :VimuxPromptCommand<CR>
" Run last command executed by VimuxRunCommand
map <Leader>vl :VimuxRunLastCommand<CR>
" Inspect runner pane
map <Leader>vi :VimuxInspectRunner<CR>
" Close vim tmux runner opened by VimuxRunCommand
map <Leader>vq :VimuxCloseRunner<CR>
" Interrupt any command running in the runner pane
map <Leader>vx :VimuxInterruptRunner<CR>
" Zoom the runner pane (use <bind-key> z to restore runner pane)
map <Leader>vz :call VimuxZoomRunner()<CR>
let g:VimuxOrientation = "h"
let g:VimuxHeight = "50"
let VimuxResetSequence = "C-l"


" @Misc
Expand Down

0 comments on commit 9a26c16

Please sign in to comment.