[vim] Fix some of the cases of escaped strings for vim search and replace oper...

...ations.

Add unit tests.