tags:

views:

18

answers:

1

When a text is selected in (my) gVim then is copied automaticaly into the clipboard (X11 behavior). While this has been ok under X11 it starts to anoy me in Windows and Mac OS. I am sure this can be switched off somewhere. But I just can't find the propper help page. Probably using the wrong search term for Google and :help.

Question: Which :set setting do I need to toggle to make Vim behave like an OS X or Windows and copy to the clipboard only on Ctrl-C. (Mapping are already are place)

PS: Working from a company provided IE without spell check - sorry about that.

+1  A: 

You must have something like

set clipboard=unnamed

In one of your rc files. Remove that line. For more information:

:help 'clipboard'

(including the quotes)

See also:

:help x11-selection
dash-tom-bang
Actualy the problem was autoselect set in guioptions. But still it was nicle explained on the help page you quoted. The vim help is pretty good once you found the right page.
Martin
Yeah I often run into the problem of "I know I've seen this in here, somewhere." E.g. I'd love to point my coworkers at the docs for the curly-braces-in-filenames that you can do, e.g. `:vimgrep /foo/ **/*.{cpp,h}`. Alas, I saw it once, use it a lot, and cannot find it again. :)
dash-tom-bang