Loading ...
Sorry, an error occurred while loading the content.

irritation

Expand Messages
  • Tim Davenport
    Hi All When I use shift-Insert under gVim (6.0, 5.8, 5.1) I get pasted instead of what was copied. I have tried ... map in
    Message 1 of 2 , Oct 31, 2001
    • 0 Attachment
      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
      xserver on
      win2k.
      The PC version of vim does not have this problem.

      thanks
      Tim Davenport
      Information Technology Services
      Deakin University
      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,
      including
      attachments, may be privileged and confidential. Any unauthorised use
      of the
      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
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ~
    • Neil Bird
      ... Assuming vim6 - doesn t paste the current clipboard (i.e., what you ve copied ), but the current visual selection (i.e., what s currently
      Message 2 of 2 , Nov 1, 2001
      • 0 Attachment
        Tim Davenport wrote:

        > :map <S-Insert> <MiddleMouse> from the command line
        > :map! <S-Insert> <MiddleMouse> from the command line

        Assuming vim6 - <middlemouse> doesn't paste the current
        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 "*
        register.

        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.
        itself.


        Try:

        :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
      Your message has been successfully submitted and would be delivered to recipients shortly.