vim search function as well as displaying and hiding line numbers

A full match:

1. Find from top to bottom, such as "string": / string

2. From the bottom up to find, such as "string":? String 

 

Second, fuzzy matching (regular expression)

1    . : Wild a character, such as matching server, can /se...r

2    * : a plurality of wildcard characters, such as matching Privilege, may be p * ge

 

Third, Quick Find


1, Shift + *: let the cursor in the word you want to find any letter above and then type Shift + *, you can quickly select the word, and carried on or next match by n or N.

2, yw: make a cursor on the first letter of the word, and then enter the word copy yw, is then input / (Ctrl + R) 0 (i.e., / "0), the transport, to find a match for the first words, and performs a previous or next matching by n or N.

 

Fourth, show and hide line numbers

Press the Esc key, and enter the colon: set number, that is, (: set number), press enter, it shows;

Press the Esc key, and enter the colon: set number, that is, (: set nonumber), press enter, not shown;

Published 131 original articles · won praise 22 · views 120 000 +

Guess you like

Origin blog.csdn.net/qq_38890412/article/details/104364111