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 started to like coding while listening to music. However this means I can't use vim with the sound off.

It seems I get a beep when I press escape, or press :

I'm on a Mac, and I love vim and now love listening to music at the same time.

How can I use vim so I don't make these mistakes -- or can I just disable beep from the terminal? Why does vim beep so?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Have you tried adding the following to your .vimrc?

set noerrorbells visualbell t_vb=
if has('autocmd')
  autocmd GUIEnter * set visualbell t_vb=
endif

Hint: Vim Wikia is almost always the best place to look for Vim tips

share|improve this answer
    
Hint acknowledged. T-3 to answer accept. –  Cris Stringfellow Feb 18 '13 at 9:50
1  
still waiting... :-) –  Andre de Miranda Feb 26 '13 at 10:55

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.