Open all unstaged and untracked source files in vim tabs
I regularly have the need to quickly open source code that I haven't yet committed, so I threw together this shell function. It will open all your unstaged and untracked files in vim, each in its own tab.
function gitvim {
vim -p $(git status --short | awk ' { print $2 } ')
}
Written by Ara
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#