You can use "+yy
to copy a whole line to clibboard, which will allow you to paste it with ctrl+v somewhere else. You can also enter in visual mode (pressing v
in normal mode) to select the exact text you want to copy.
Please note that you must have the +clipboard
(and also python support +python
if I remember well) in your compile flags enabled. To check this type:
vim --version | grep clipboard
If you read +clipboard, you are good to go, othewise if it outputs -clipboard, then you need to recompile your vim with clipboard support (I had to do that as in my distribution they don't enable this by default).
Also, please consider addressing your questions to https://vi.stackexchange.com/, which is in beta right now, but can be a nice place for this type of question.