stop the beeping in gvim (without :set vb)

401 views
Skip to first unread message

Aljosa Mohorovic

unread,
May 12, 2008, 5:29:40 AM5/12/08
to vim_use
i would like to stop the beeping in gvim but the only solution i found
was to use ":set vb" which i hate even more.

i was using vim in konsole (kde) and there is a setting in konsole to
disable beep but after i switched to a new lcd monitor colors are
awful and i had to switch to gvim.

is there any way to kill beeping in gvim?

Aljosa

Albie Janse van Rensburg

unread,
May 12, 2008, 5:31:33 AM5/12/08
to vim...@googlegroups.com

From :help beep

Use visual bell instead of beeping. The terminal code to display the
visual bell is given with 't_vb'. When no beep or flash is wanted,
use ":set vb t_vb=".

Have you tried that setting?

--

[ Albie Janse van Rensburg ~ http://morph.telspace.co.za ]

He who laughs last is probably your boss.

Tony Mechelynck

unread,
May 12, 2008, 5:59:32 AM5/12/08
to vim...@googlegroups.com

:set vb t_vb=

will disable both the audible bell (by setting 'vb' on) and the visual
bell (by setting t_vb to the empty string).

I use the opposite:

set vb
let &t_vb = "\<C-G>" . &t_vb
if has("autocmd") && has("gui")
au GUIEnter * let &t_vb = "\<C-G>\e|50f"
endif

which sets both an audible bell and a visual bell, by sending the BEL
character (Ctrl-G) in addition to the default setting (for console mode,
depending on the termcap in use) or to a "50 millisecond screen invert"
sequence <Esc>|50f (for GUI mode)

The GUI setting must not be set earlier than the GUIEnter autocommand
event, otherwise it will be overridden when starting the GUI.


Best regards,
Tony.
--
Pecor's Health-Food Principle:
Never eat rutabaga on any day of the week that has a "y" in
it.

Aljosa Mohorovic

unread,
May 12, 2008, 6:46:52 AM5/12/08
to vim_use
On May 12, 11:31 am, Albie Janse van Rensburg <albie....@gmail.com>
wrote:
> From :help beep
>
> Use visual bell instead of beeping. The terminal code to display the
> visual bell is given with 't_vb'. When no beep or flash is wanted,
> use ":set vb t_vb=".
>
> Have you tried that setting?

no, thanks for your help.

Aljosa
Reply all
Reply to author
Forward
0 new messages