vim how to search for URL

后端 未结 5 944
借酒劲吻你
借酒劲吻你 2021-01-12 15:12

How would you search for the following string in vim?

http://my.url.com/a/b/c

I\'ve tried (a la Very No Magic)

:/\\Vhttp://         


        
5条回答
  •  梦谈多话
    2021-01-12 15:34

    Can also set the search register directly.

    :let @/='\Vhttp://my.url.com/a/b/c'
    

    Then you can use n and N like normal.

提交回复
热议问题