How to align text on the whitespace after the first word character in vim.

Today I decided to make my factory_girl factory definitions look a little bit more pretty. My tool of choice for alignment in Vim is the famous Align plugin. It turned out the task at hand is not as trivial as one might think at the first glance. By additionally harnessing the power of the mighty vim regexp the solution is so damn simple that I almost cried because I wasted 10 minutes on this, so here is my solution.

Continue reading

The tale of why I chose Vim over Emacs and any IDE.

Some month ago I watched someone hacking pretty impressive with Emacs . It was so fast I did not even get what he actually was doing. That day I decided to master Emacs to become as productive as he was. Some weeks passed and it started to feel really good. Until some friends at university told me they prefer vim. At first I thought something like “What’s this with the crazy mode stuff? Where is my C-x M-c M-butterfly?”. But once you get used to vim you will never miss it again. I made the switch and I am very happy. In this blog post I will clarify the reasons for my decision and introduce some resources that helped me getting up to speed.  Continue reading