Skip to content

Instantly share code, notes, and snippets.

@rainerborene
Created April 30, 2013 18:29
Show Gist options
  • Save rainerborene/5490839 to your computer and use it in GitHub Desktop.
Save rainerborene/5490839 to your computer and use it in GitHub Desktop.
" Start a process in a new, focused split pane.
function! s:StartSplit()
let directory = expand('%:p:h')
let command = exists('b:start') ? b:start : &shell
exec printf('Tmux splitw -c %s %s', directory, command)
endfunction
command! -nargs=0 StartSplit call s:StartSplit()
" Dispatch
nnoremap <leader>r :StartSplit<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment