Thread: stop beep in vi
View Single Post

   
  #2 (permalink)  
Old 01-19-2008, 08:40 AM
sk8r-365
 
Posts: n/a
Default Re: stop beep in vi

Government satellites recorded tim braun saying:
> dear debian gurus,
> how can stop that beeb whenever i enter a wrong command in vi ?
>


Smart ass answer - stop screwing up.

More likely the reply you need ...

from the manual:
"5.3 How can I keep Vim from beeping all the time?

Well, you can use ``set noerrorbells" but it does not turn off the bell for
all cases. It only makes a difference for error messages; the bell will be
always be used for a lot of errors without a message (e.g., hitting <Esc> in
Normal mode).

If you want Vim to stop beeping then all you need is ``:set vb'' which tries
to do a screen flash rather than an audible beep. Some terminals can't do
screen flashes, but if yours does and you don't want it to flash or beep
then use ``:set vb t_vb=''."

or

(haven't tried this, put the following in your .vimrc)

set noerrorbells
set visualbells
set t_vb=

--
sk8r-365

http://goodbye-microsoft.com/
Reply With Quote