Turn off the error bell sound in vi

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.