Searching word in vim?

前端 未结 4 1647
说谎
说谎 2021-01-29 18:21

I can search word in vim with /word. How can I search only for word, excluding searches for word1 and word2?

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 18:59

    If you are working in Ubuntu,follow the steps:

    1. Press / and type word to search
    2. To search in forward press 'SHIFT' key with * key
    3. To search in backward press 'SHIFT' key with # key

提交回复
热议问题