Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It seems that the VIM color scheme is conflict with Mac Terminal's setting.

I want to change the highlight search color. And it's OK by setting in VIM ESC mode. (:hi search ctermbg=4)

However, it's not work to set in .vimrc.

share|improve this question

migrated from Jul 5 '11 at 19:32

This question came from our site for professional and enthusiast programmers.

Are you setting hl Search ctermbg=4 after setting colorscheme in .vimrc? – jamapag Jul 7 '11 at 14:59

You have to edit your color scheme directly.

If it's one you downloaded from it is probably located in ~/.vim/colors, if it's one of the default color schemes it can be located in many places depending on wether you use the Apple-provided vim or another one you installed yourself. You can type :set rtp? to see where to find the colorscheme you are using.

share|improve this answer

if its one downloaded by you and it doesn't work try moving it to ~/.vim-x/colors.

For some reason Mac sometimes reads that instead of ~/.vim

share|improve this answer

Your Answer


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.