This is because you have the separator /
in the word you are looking for, so that the blocks get confused.
You can escape all the /
, but it can be faster and cleaner to change the separator. For example, you can use _
:
:%s_http://localhost:8080/MyProject/jsps/ErrorPage.jsp_&_gn
^ ^ ^