Problem
When yanking text from Vim, the text gets copied to vim buffer and not to the system clipboard buffer.
Solution
To yank text to system buffer
- Select the text you want to copy using visual mode.
- Type
"*yto yank the selected text to system buffer.
To paste text in Vim from system buffer
- Type
"*pto paste the text from system clipboard at the cursor.