105

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.

3 Answers 3

196

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.

12
  • 1
    Note that as of v0.35, IdeaVIM no longer uses the ~/.vimrc, it now uses ~/.ideavimrc. Jun 17, 2014 at 16:28
  • 8
    on windows (7) it is _ideavimrc instead of .ideavimrc in your C:\Users\<username>\ folder
    – Chris
    Mar 11, 2019 at 21:04
  • 7
    Peace (and quiet) be with you. Jan 6, 2021 at 22:02
  • 3
    after doing this, I was about to lose hope, but I just had to restart all of the open IntelliJ windows I had
    – emmagras
    Jan 11, 2021 at 16:35
  • 1
    Windows folks - don't forget to remove the .txt from the end of your _ideavimrc file, like I did. Apr 29, 2021 at 19:57
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

4
  • Blissful peace! Thanks :)
    – levacjeep
    Aug 29, 2019 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 7, 2020 at 18:16
  • It did for me with macOS 12.1 (Monterey) and PyCharm 2021.3
    – leafmeal
    Dec 27, 2021 at 22:11
  • This works for me too on Monterrey 12.3. I'm not sure why the ~/.ideavimrc fix didn't work. Aug 19, 2022 at 15:57
0

Wondering why no one has mentioned disabling the audible bell from the settings. Is the OP asking something different?

disabling the audible bell

1
  • This does not disable the bell from IdeaVim. It disables the bell when navigating in the terminal (as indicated by the tab name) Feb 5 at 16:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .