FANDOM


Tip 1154 Printable Monobook Previous Next

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

Comments

I suppose you meant vnoremap.


Also you want to use this (to just append the "a" to your options):

:set guioptions+=a

Community content is available under CC-BY-SA unless otherwise noted.