Create a mapping for Vim's command-line that escapes the contents of a register before inserting it
问题 Suppose that I have a document like this, and I want to search for all occurences of the URL: Vim resources: [http://example.com/search?q=vim][q] ... [q]: http://example.com/search?q=vim I don't want to type it out in full, so I'll place my cursor on the first URL, and run "uyi[ to yank it into the 'u' register. Now to search for it, I'd like to just paste the contents of that register into the search field by running: /\V<c-r>u<CR> This results in Vim searching for the string 'http:' -