To disable the beep or chime sound in Windows 10 subsystem Linux Bash
Edit /etc/inputrc (need to sudo)
and uncomment or add the line:
set bell-style none
set bell-style visible
To disable the beep or chime sound in vim:
Add this to your .vimrc
set visualbell