Vim Quick Find

Source: Internet
Author: User

Find 1. Quick Find

Enter Normal mode / and then type the string you want to find and press ENTER to find it. is the same as the / function, but looks up and / down. After entering the lookup, the input n and N can continue to find n the expression to continue the lookup, N reverse Lookup

2. Quick Find Exercises

Use VIM to open a file for editing

$ vim protocols
    • Normal mode input /icmp find string ICMP
    • Normal mode Enter to n find the next ICMP
    • Normal mode input ?tcp up lookup string TCP
    • Normal mode input N to find the last occurrence of TCP
3. Advanced Search
    • Enter \* a word in normal mode to find where the cursor is located
    • In normal mode, enter the same as \# above, but \# forward (up), it \* is backward (bottom) to find
    • Normal mode g\* \* , but partially matches the word
    • Normal mode g\# \# , but partially matches the word

Search for n The above, N continue to find command can still be used

Vim Quick Find

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.