If your favorite editor is vim, you surely already noticed that even with default configuration you’ll get a nice syntax highlighting for commit messages. It notifies you if your commit message is too long, it auto-wraps long lines in the description. Pretty.
But sometimes all of this does not work. You still get only black and white display, no colors, no highlighting, nothing. My colleague spent two hours of googling for vim documentation, adjusting configuration, copying my configuration, to no avail.
Well if you reached that point in your life, and I believe some of you did (according to similar problems mentioned throughout the Internets), then…
… just ensure vim is your default editor, will you? 😀
Because vi is the default editor in Fedora. If you don’t put something like
into your ~/.bashrc or somewhere, then you have vi by default. And that does not do any of that pretty stuff.
The solution can be simple, but sometimes it can be really hard to find. Enjoy the day.