I use the terminal to vim into existing and new programs. I hate the fact that at all times I need to kick in :syntax on on the command line to make the syntax all colorful. Does anyone have a recipe for how I can make sure my terminal always kicks in with colorful syntax ?
Put syntax on in your ~/.vimrc file.
Add syntax on to your ~/.vimrc. See :help initialization.
来源:https://stackoverflow.com/questions/13405149/permanent-syntax-on-switch-for-vim-over-os-x-terminal