created February 27, 2006 · complexity basic · author Anon · version 6.0
With this tip, just selecting text with mouse in gvim, will copy that text to the clipboard for pasting into other applications (on Windows and on Xwindows, ala Xterms).
Put these commands in ~/.gvimrc
" Method 1 (for Xwindows and mswindows), this map is different from the one shown in vim documentation: :noremap <LeftRelease> "+y<LeftRelease> " Method 2 (works only on ms-windows vim63): :set guioptions=a
I suppose you meant vnoremap.
Also you want to use this (to just append the "a" to your options):
Can someone tell me how to disable this autocopy function. I often want to replace some selected text with some other text i have copied before. The autocopy function always owerwrites my buffer.