WSL 1) Turn off bell for bash vi ~/.inputrc set bell-style none 2) Turn off bell for vi vi ~/.vimrc set visualbell set t_vb= 退出终端,重新登录即可。