Last Updated: February 25, 2016
·
987
· herson

Copy/Cut text to clipboard in vim

You can copy text in vim to clipboard while you are on visual mode using the command "+y also, you can map the command to the Cmd-C key combination.

" Copy Text to clipboard
vmap <C-c> "+y

" Cut text to clipboard
vmap <C-x> "+d