[vim] Fix unescaping of escaped strings for search and replace

Add unit tests.