If I have something stored in the named register n
, then from the normal mode hitting
/<C-R>n
would search for what is stored inside the register.
But suppose I want to write a function which searches for what is stored in the n
register.
What do I do?
I tried
function! SearchTheDataInnReg()
<C-R>l
endfunction
I get an error message:
E488: Trailing characters: <09><C-R>l