I have been working with Vagrant and Chef on my Macbook lately for work and that means I keep jumping in and out of files to do some quick edits. My preferred editor for doing quick edits is vim and luckily OSX is nice enough to include vim for me by default. However, they aren’t quite nice enough to build it against Ruby and Python even though they are both also on the system. This results in the system vim not being able to do syntax coloring for Ruby or Python files. Oh noes!
Luckily for us there are two ways to fix this problem. The first is the long, drawn out way of compiling vim for ourselves with Ruby and Python support, BOO. The second and my preferred way is to install macvim via Homebrew and just use macvim instead of vim. This is super easy. However, you will need to train yourself to use mvim -v instead of vim or just alias vim to mvim -v. That sounds lame and their has to be a better way.
Luckily there is, you just install macvim via Homebrew but instead tell it to overwrite the system vim.
brew install macvim --override-system-vim
This means that with one command we have a working vim on our system with Ruby and Python support, Yeahhhh!Tweet