Dave's Brain

Browse - Computer Tips - How can I stop vim from beeping (making sound)?

Date: 2014oct8
Product: vim
OS: Linux
Keywords: vi, beep, beeps

Q.  How can I stop vim from beeping (making sound)?
(eg when I press ESC in command mode)

A.  Add this to your personal ~/.vimrc file or the global one /etc/vimrc

set visualbell set t_vb=
This tells vim to visually beep you but then sets the string to do that to nothing -- effectively disabling it.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.