Skip to content

Instantly share code, notes, and snippets.

@tarmstrong
Created January 2, 2014 17:53
Show Gist options
  • Save tarmstrong/8223191 to your computer and use it in GitHub Desktop.
Save tarmstrong/8223191 to your computer and use it in GitHub Desktop.
In a git repository, open all currently modified and unstaged changes in vim. Each file is opened in a separate tab.
#!/usr/bin/env bash
MODDED_FILES=$( git ls-files --modified );
vim -p $MODDED_FILES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment