I am programming some bash scripts in Terminal with VIM, on OSX 10.8, but there is no syntax-highlighting for bash. How can I enable it?
migrated from stackoverflow.com Nov 21 '12 at 9:51
This question came from our site for professional and enthusiast programmers.
i have been using macvim http://code.google.com/p/macvim/ for a long time, it has syntax highlighting. just enable syntax highlighting using ":syntax on" in your .vimrc.
don't forget to make an alias for macvim in your environment. just like this: alias vim='/Applications/MacVim/mvim'
the stock vim (/usr/bin/vim) should have also has syntax highlighting too.
oh, in case you need full GUI editor, try textmate, it's free now