Even if I tend to use the same solution as caviar, you can also use \% c β :h /\%c
EDIT: For those who don't find the documentation very explicit.
Say my buffer contains
dog 1dog 12dog 123dog 1324dog 12345dog 132465dog
Then :echo search('\%5cdog') will give me: 5 (line 5).
You can also set 'hlsearch' to β :set hlsearch and see what text matches the buttons /\%5cdog , /\%<5cdog and \%>5cdog
Luc hermitte
source share