Skip to content

Instantly share code, notes, and snippets.

@thcipriani
Created October 1, 2015 19:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thcipriani/6af103f36c5c4f1ba810 to your computer and use it in GitHub Desktop.
Save thcipriani/6af103f36c5c4f1ba810 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