Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there a way to let Vim on Mac OS highlighten syntax of different languages in Terminal? I would guess for vim it is a .vimrc thing, right? (But I cannot find this file in my home folder).

share|improve this question

1 Answer 1

up vote 11 down vote accepted

If the file ~/.vimrc is not there, you'll just need to create it. To enable syntax highlighting, add

syntax on

to it. Also make sure that "Display ANSI colors" is enabled in the Terminal Settings.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.