Skip to content

Instantly share code, notes, and snippets.

@stengland
Created August 3, 2012 15:24
Show Gist options
  • Save stengland/3248621 to your computer and use it in GitHub Desktop.
Save stengland/3248621 to your computer and use it in GitHub Desktop.
My Vimux/Turbux set up
if exists('$TMUX')
" 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 all other tmux panes in current window
map <Leader>vx :VimuxClosePanes<CR>
" Close vim tmux runner opened by VimuxRunCommand
map <Leader>vq :VimuxCloseRunner<CR>
" Interrupt any command running in the runner pane
map <Leader>vs :VimuxInterruptRunner<CR>
endif
" Alternate for minitest
autocmd User Rails/app/**/*.rb let b:rails_alternate = 'test/' . rails#buffer().name()[4:-4] . '_test.rb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment