Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have installed vim 7.3 under cygwin.

And I have this in my ~/.vimrc

$ cat .vimrc
colorscheme wombat

And then I have this file wombat.vim under '.vim/colors'.

 $ ls -la .vim/colors/
total 8.0K
drwxrwxr-x+ 1 cheungs mkgroup    0 Nov 12 00:04 ./
drwxrwxr-x+ 1 cheungs mkgroup    0 Nov 12 00:04 ../
-rw-r--r--  1 cheungs mkgroup 1.5K Nov 12 00:04 wombat.vim

But when I 'vim AJavaFile.java', it shows no color, just black and white.

How can I fix it? I have the same settings under Ubuntu, and that works.

Thank you.

share|improve this question
add comment

3 Answers

You have to (either run or) add the following command to your ~/.vimrc file:

:syntax on

share|improve this answer
add comment

As of vim-7.3.943 the vi binary is now compiled with the small featureset. To get syntax highlighting you must use vim (or alias vi to vim...).

This is likely a newer version than was available at the time of OP, but it is relevant now and is still v7.3 as listed in the OP.

share|improve this answer
add comment

You should change cyngwin terminal options to xterm-256. Then restart termin

share|improve this answer
1  
You should add more detail to your question elaborating on why your solution works –  Shakehar Nov 13 '13 at 18:31
add comment

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.