A Good Vimrc

“There is just one rule you must follow when crafting your own .vimrc.

Don’t put any lines in your vimrc that you don’t understand.

There are tons of tutorials such as this one on the internet that contain all kinds of awesome hacks to make your Vim better, but the absolute worst way to make your environment better is to just copy it wholesale from others.

Spending the time to actually learn what’s going into the construction of your editor is invaluable. In the same way that copying notes off a projector by hand often leads to increased information retention, adding features one by one to your vimrc aids in overall Vim comprehension.

With that said, the rest of this article will be me explaining each and every line in my current vimrc in its entirety with the hope that you will find some tricks you haven’t seen before. But! My vimrc is far from perfect. I’m always looking for additions that would make my environment better so if you think I missed something important please let me know: @dougblackio…”