Quantcast
Channel: Commands tagged vim sorted by votes
Viewing all articles
Browse latest Browse all 51

Open (in vim) all modified files in a git repository

$
0
0
$ vim `git status | grep modified | awk '{print $3}'`

This oneliner gets all the 'modified' files in your git repository, and opens all of them in vim.

Very handy when you're starting to work in the morning and you simply want to review your modified files before committing them.

Maybe there are better ways to do that (and maybe integrated in vim and/or git, who knows), but I found quicker to do this oneliner.

commandlinefu.com

Diff your entire server config at ScriptRock.com


Viewing all articles
Browse latest Browse all 51

Trending Articles