Created
October 1, 2015 19:22
-
-
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
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