Skip to content

Instantly share code, notes, and snippets.

@brennen
Forked from thcipriani/BangOpen.vim
Created October 1, 2015 19:26
Show Gist options
  • Save brennen/386d96d695472796155c to your computer and use it in GitHub Desktop.
Save brennen/386d96d695472796155c to your computer and use it in GitHub Desktop.
Open the output of a command as a file in a new tab: i.e. :BangOpen which git-new-workdir
" BangOpen ------------------------------------------------------------ {{{
function! BangOpen(arg)
execute 'tabe ' . system(a:arg)
endfunction
command! -nargs=1 BangOpen :call BangOpen(<f-args>)
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment