I want to use the contents of the register as a search template in Vim.
I would like to do this from the command line, so I cannot use the <cr> syntax, as this implies an interactive session.
You can use case as a replacement pattern, for example
:%s/foo/\=@a/g
However, using this syntax as a search pattern does not work
:%s/\=@a/foo/g
displays
E64: \= follows nothing E476: Invalid command
vim
pkit Oct 13 '10 at 9:44 2010-10-13 09:44
source share