Vim practical guide (two): search (2)-regular search

One, match the beginning of the line

       ^ Match the beginning of the line

      Such as: /^the # will only find the line starting with the, note that it is a line, not a word

Second, match the end of the line

       $ Matches the end of the line,

        For example: /the$ # will only find lines ending with the,

Three, match any single letter

        . Matches any single letter

        Such as: /.the # matches words that contain the

Four, other

       Vim uses regular matching. I personally feel that it’s not cost-effective to learn regulars in order to learn to find, so you can study by yourself

          

Guess you like

Origin blog.csdn.net/lianshaohua/article/details/108546396