- Hi All
When I use shift-Insert under gVim (6.0, 5.8, 5.1) I get <S-Insert> pasted
instead of what was copied.
I have tried
:map <S-Insert> <MiddleMouse> from the command line
:map! <S-Insert> <MiddleMouse> from the command line
map <S-Insert> <MiddleMouse> in my .gvimrc
map! <S-Insert> <MiddleMouse> in my .gvimrc
Plus numerous variations of this.
if I run vim (without -g or gvim) this problem does not exist
I am running gvim from solaris 2.8, 2.6 & UWIN on Starnet X-Win32
The PC version of vim does not have this problem.
Information Technology Services
phone (Geelong): 61 3 522-78942
phone (Burwood): 61 3 924-46703
Fax : 61 3 5227-8866
IMPORTANT NOTICE: The contents of this email transmission,
attachments, may be privileged and confidential. Any unauthorised use
contents is expressly prohibited.
If you have received this transmission in error, please advise the sender
by return email or telephone immediately and destroy all versions
- Tim Davenport wrote:
> :map <S-Insert> <MiddleMouse> from the command lineAssuming vim6 - <middlemouse> doesn't paste the current
> :map! <S-Insert> <MiddleMouse> from the command line
clipboard (i.e., what you've 'copied'), but the current visual
selection (i.e., what's currently highlighted in any app.).
Technically, under X copying in vim6 puts the text into the
"+ register, whereas <middlemouse> pastes the highlighted "*
I have to assume it 'works' in terminal vim because your term
app. doesn't pass mouse clicks to vim, but does the paste etc.
:noremap <S-Insert> "+P (maybe "+p - check your Edit menu)
:inoremap <S-Insert <C-R>+
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit