102

How do you disable the bell sound in Intellij.

I am using the IdeaVim plugin for Intellij on Mac OS X and want to mute the sound.

ZenBalance
  • 1,989
  • 5
  • 16
  • 12

2 Answers2

188

This article may help you.

Basically, IdeaVIM reads your ~/.ideavimrc (~/.vimrc pre-v0.35) file and silently ignores any settings it does not understand. Of the bell-related settings, it does not understand :set noerrorbells, but it does understand :set visualbell. And since it has no implementation for a visual bell, it will do nothing and achieve the desired effect.

So in your ~/.ideavimrc, you can use the following:

set visualbell
set noerrorbells

This will set the (non-functional) visual bell for IdeaVIM while disabling the bell completely for VIM itself.

Johnny G
  • 1,996
  • 1
  • 13
  • 6
12

I wanted to disable the Bell sound throughout all of my Mac, including AppCode. Did this by sliding Alert Volume to 0 in System Settings > Sound on my Mac

snowbound
  • 506
  • 6
  • 13
  • Blissful peace! Thanks :) – levacjeep Aug 29 '19 at 15:47
  • 2
    An update for those who find this post five years later like I did. Unfortunately, system sound settings doesn't control this bell for Macos Catalina and Intellij 2020.2. Adding `set noerrorbells` and `set visualbell` in `~/.ideavimrc` does still work. – Shawn Dec 07 '20 at 18:16
  • It did for me with macOS 12.1 (Monterey) and PyCharm 2021.3 – leafmeal Dec 27 '21 at 22:11
  • This works for me too on Monterrey 12.3. I'm not sure why the ~/.ideavimrc fix didn't work. – mellow-yellow Aug 19 '22 at 15:57