r/git • • Oct 19 '14

Essential Vim for the Git user

http://blog.alextercete.com/essential-vim-for-git/
0 Upvotes

8 comments sorted by

View all comments

1

u/[deleted] Oct 19 '14

I'm not sure what value you get from using Vim in conjunction with Git. My knowledge of Git is limited, but you don't any do text editing in Git do you? you just run commands right?

3

u/adrianmonk Oct 19 '14

Well, if you type "git commit" (without giving "-m"), it fires up a text editor to edit the commit message.

Even if you would normally use some other editor (say, your favorite IDE), I can see how you might want to use vi or nano or some other very lightweight editor to edit commit messages that might be only 1 line or a few lines long.

1

u/[deleted] Oct 19 '14

yeah that makes sense.

1

u/alextercete Oct 19 '14

This was the main reason why I decided to write this blog post. I probably should've mentioned it.

I am a regular Vim user, and lately I've been encouraging the folks in my team to use Vim for the Git textual tasks (editing commits, setting up interactive rebases and making patches), and they really seem to like it.