I would like to copy the following function and paste it into a shell outside vim:
Once I have selected the text I have tried doing "+y
and it yanks the text, and allows me to copy-paste that into another vim editor, but if I try copying it into another terminal shell, it doesn't do anything. Now how I have to do it is use my mouse, remove the line numbers, and highlight those lines 37-42. What would be the proper way to yank/copy the text so I can paste it into other programs. Note that this is on a remote ubuntu server.
Note that outside of vim, I would have to use Cmd
p
to paste in the text (my local machine is a mac).