Last Updated: February 25, 2016
·
923
· ahacop

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 } ')
}