I’m trying to write a copy/paste function for visual mode vim. Copy reads all the lines highlighted.
vmap cc :execute Copy()<CR>
turns into
'<,'>:execute Copy()<CR>
which results in
E481: No range allowed
How can I get vmap not to insert ‘<,’> when going into ex mode?
You can use C-u to clear command line.