It is extremely useful to be able to quickly edit code files inline in the mac terminal. This post assumes you are at least somewhat familiar with the vim console text editor. On mac by default you simply get plain text which whatever theme you are in. For the homebrew theme you will see something like this for a simple ruby on rails controller file:
It is much easier to look at and edit code if it is color coded. It is quite simple to enable this on mac. You just need to edit the .vimrc file to contain a few lines. The .vimrc is usually located at the user root ~/.vimrc, if it does not exist you can create it using vim.
Then add the following lines:
filetype plugin indent on
After adding these lines you should
If you run into trouble, here is a link: http://vim.wikia.com/wiki/Turn_on_syntax_coloring_in_Mac_OS_X