Skip to content

Instantly share code, notes, and snippets.

@morhekil
Created April 1, 2014 08:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morhekil/9910296 to your computer and use it in GitHub Desktop.
Save morhekil/9910296 to your computer and use it in GitHub Desktop.
vroom and tmux setup to to quickly zoom rspec's pane and put it into copy mode.
# quick zoom of another pane, with a given title ("target" in this example)
bind-key k run "~/bin/tmux-zoom-pane target"
" Vroom setup
let g:vroom_clear_screen=0
let g:vroom_use_vimux=1
let g:vroom_use_bundle_exec=0
let g:vroom_use_binstubs=0
let g:vroom_use_bundle_exec=0
let g:vroom_rspec_version='1.x'
let g:vroom_use_colors=0
" this gives rspec's pane a title "target", that we'll late use to find its id
let g:vroom_spec_command="printf '\\033]2;target\\033\\\\' && rspec "
#!/bin/bash
target_title=$1
target_id=`tmux list-panes -F '#{pane_id},#{pane_title}' | grep $target_title | cut -f1 -d,`
tmux resize-pane -Z -t "$target_id" \; copy-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment