Article Title: Turn off the error bell sound in vi. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
If vi/vim is used in the console mode, once an error key is pressed, bi will be issued. This will remind us, but many times it will affect others' work, study, or rest, how to disable it?
It can be used in vi/vim.
: Set noeb
Command (noeb is the abbreviation of noerrorbells), so that when an error occurs, no bi will be issued. You can use
: Set vb
Command (vb is short for visualbell), instead of bell, the screen will flash.
This may be enough, but such flashes will also affect others when we program overnight, especially when we stay with others (such as student dormitories. This can be used
: Set vb t_vb =
Command, the voice of the vi error is completely forbidden. (The effect is the same as that of set noeb, but other performance can be achieved by setting the t_vb value. For details, see the help of vi)
The preceding commands can also be written in $ HOME/. vimrc to save the need to manually enter commands each time.
More detailed instructions can be used in vi/vim
: Help vb
Command to view