vim how to search for URL

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

    Use MacVim (or GVim). Open the non-regex GUI search using f (or ctrlf on Windows). This is the recommended way to do a non-regex search in Vim. GUI Vim has many improvements over terminal vim like this one and I would highly suggest using it full time if you aren't already.

提交回复
热议问题