-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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