Linux drill---------Vi/vim removal history search results highlighting

Source: Internet
Author: User

as a result of the recent work on the Linux system, often used to vi/vim, the operation of Vim for a certain period of time, began to use the high-frequency vim of the various shortcuts, of course, there is no less vim inside the powerful search and replace function.

In command mode, to search for specific content in a file, such as "Hello World", enter/hello world directly, at which time Vim will highlight all "Hello World" that matches it (the highlighted color depends on the system settings and terminal style), Press the N cursor to enter the next match and press N to enter the previous match.

When we find out, we want to remove the matching highlighting, which corresponds to two common methods:

1. In command mode, match a longer or less-than-content content to overwrite the original match.

2. In command mode, press:, enter Noh, and the original match on the screen is canceled.







Because of the car, we have a mission, because you, we have the power, believe us, car and home.


This article is from the "Sea" blog, be sure to keep this source http://lisea.blog.51cto.com/5491873/1787539

Linux drill---------Vi/vim removal history search results highlighting

Related Article

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.