vim how to search for URL

后端 未结 5 867
借酒劲吻你
借酒劲吻你 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:48

    I'm not sure why you get not an editor command since I don't. The simplest way to search without having to escape slashes is to use ? instead, e.g.

    :?http://my.url.com/a/b/c
    " or since the : is not necessary
    ?http://my.url.com/a/b/c
    

    This does search in the other direction, so just keep that in mind

提交回复
热议问题