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

Re: gvim paste from windows clipboard

Expand Messages
  • Yakov Lerner
    ... Yakov
    Message 1 of 14 , Apr 1, 2006
    • 0 Attachment
      On 3/31/06, Bob Hensell <rhensell@...> wrote:
      > Please disregard my previous email, and reply to this email, thank you:
      >
      >
      >
      > Does anyone have a tip for me? I am running gvim 6.4 from cygwin on my XP
      > machine. Whenever I try to paste into gvim from another application using
      > the middle mouse button, the text gets pasted, but a ^@ also gets appended
      > to each line of my text. Is there something I can put into my .vimrc file?
      > I've tried the mswin.vim but that didn't help. I'm rather new to vim and
      > gvim. I work with UNIX servers all day, so I'm used to vi, but I like the
      > script coloring that is available in vim. Any help would be greatly
      > appreciated because as it works now with the appending text, it makes it
      > virtually unusable because I do a lot of pasting into my scripts.

      :inoremap <MiddleMouse> <MiddleMouse><esc>mz:silent! %s/<c-v>000//g<cr>'za
      :noremap <MiddleMouse> <MiddleMouse>mz:silent! %s/<c-v>000//g<cr>'z

      Yakov
    Your message has been successfully submitted and would be delivered to recipients shortly.