R – Copy text from Vim 7.2 running in xterm to windows clipboard

clipboardcopy/pasteputtyvimxterm

I'm using Vim 7.2 , compiled with +xterm_clipboard , in a xterm through putty . I've put set clipboard=unnamed in .vimrc , and from what i've read in other threads , this should put all yanks/deletes to the system clipboard. However , when I'm trying to paste whatever i've yanked to a MS app like notepad, its not working.

When I select text in vim using mouse , it automatically gets copied to the system(MS clipboard). I'd like to have the same functionality while using keyboard commands like 3yy .

Can anyone tell me what I'm doing wrong ?

Best Answer

Try

"+3yy
"*3yy

"+p
"*p