There is a vim function Send_to_Screen(text)
which sends some text to a console screen session. I have a mapping
vmap <F4> "ry :call Send_to_Screen(@r)<CR>
which calls the function with the current selection. Now I want do define another mapping which calls the function with the contents of the whole buffer, but I don't get it to work. I tried
nmap <F5> maggVG"ry`a :call Send_to_Screen(@r)<CR>
but it doesn't work. So how do I define the mapping with the text of the current buffer?