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
Written by Herson Salinas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Viml
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#