On Thu, 2003-08-28 at 07:53, Elias Pschernig wrote:
> On Thu, 2003-08-28 at 04:22, Steve Hall wrote:
> > Hmm... can't seem to find a problem, what desktop? Everything's
> > fine for me on GNOME 2.2.0/RH9. You might check your platform
> > shortcuts--mine has *way* too many pre-assigned keys by default,
> > so I end up removing them all and starting over.
> Debian's Gnome 2.2.2 here. But it's not in the keyboard shortcuts in
> Desktop Preferences->Keyboard Shortcuts. And since I can use
> Shift-Insert in every other application (also non-gnome), it must
> obviously be defined somewhere. Just, I have no idea where.
It *is* defined by Cream, exactly as Ctrl+V:
imap <silent> <C-v> x<BS><C-o>:call Cream_paste("i")<CR>
imap <silent> <S-Insert> x<BS><C-o>:call Cream_paste("i")<CR>
> Also searching for "X11 shift-insert" in google turned up nothing,
> except maybe i found that middle-mouse-button and shift-insert do
> the same. I experimented some more, and it seems like gnome
> applications have ctrl-c/ctrl-ins and ctrl-v/shift-ins/middle mouse
> as copy/paste. And just selecting some text, then clicking
> somewhere, is an additional way of putting something into the copy
> buffer. And the middle-mouse click does first change the cursor to
> the click pos, then does the pasting. And if copy/paste is done
> between different gnome apps, the middle-click uses its own paste
> For some non-Gnome apps (i.e. xterm), only selecting means copy, and
> middle mouse *and* shift-insert work as paste
> (ctrl-c,ctrl-v,ctrl-insert seem to do nothing).
> For mozilla, everything works like in gnome apps.
> For cream, everything is different.
The clipboard standard has been defined for a while, but some apps do
not follow it correctly. There are actually two main clipboards
available: one to store the selection ("*) and the global clipboard
across apps ("+).
The Unix standard is that middle mouse pastes the *selection*
clipboard. Many people find this unintuitive and bothersome (myself,
Windows users, Apple users) and so it is disabled by default in Cream.
Cut/Copy/Paste all use the *global* clipboard and middle mouse does
But due to some "prodding" by some on this list, we now offer an
option to use the selection clipboard under the preferences menu. You
should find when using it that making a selecting and using
middle-mouse to paste work per the Unix standard. However it does not
change the behavior of Ctrl+X/C/V, nor Shift+Del/Ctrl+Ins/Shift+Ins.
If either of Cream's clipboards don't interact properly with another
app, it's possible that the app isn't using the standard correctly.
Read :help clipboard for more.
> Shift-Insert does nothing.
> Just selecting something does nothing (i.e. when i click
> middle-mouse or paste in another app, it doesn't paste the selected
> text, but the one which was last selected in the other app).
> The middle mouse button only works after 2 clicks, and pastes what
> was selected in anoter app only, not what was selected in cream.
> Maybe this is where the problem lies, it somehow discards the first
> middle click, and shift-insert is mapped to a first-middle-click by
> Ctrl-Insert/Ctrl-C/Ctrl-V work.
> Anyway, I'm quite puzzled. I'm using the default Debian/Gnome, and
> as I described, all gnome apps work, and most other apps work, even
> if they are using some odd paste by middle-mouse/copy by select
> behavior. Just cream (unmodified 0-23) doesn't allow me to do
> Maybe I can try modifying the cream configs somehow? I found the
> Shift-Insert mappings in .cream/cream-keys.vim, and tried removing
> them, but no change. Hm, and the default gvim without cream seems to
> do what it wants.. so i didn't do much testing there :)
Could it be that you are expecting Shift+Insert to copy the selection
buffer? Again, I find Shift+Insert to work as documented on both
RH9/GNOME2 and Win95-2k. If you still can't get it to work as we're
documenting, I have one more test we can run. Or if you want your
clipboard keys to operate on the selection clipboard, I can give you
code to help you get the desired behavior.
(And sorry for the delay in reponse, I've been out of town for a few
Steve Hall [ digitect@... ]
Cream... the Vim text editor in sheep's clothing!