Re: gvim paste from windows clipboard
- On 3/31/06, Bob Hensell <rhensell@...> wrote:
> Please disregard my previous email, and reply to this email, thank you::inoremap <MiddleMouse> <MiddleMouse><esc>mz:silent! %s/<c-v>000//g<cr>'za
> 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.
:noremap <MiddleMouse> <MiddleMouse>mz:silent! %s/<c-v>000//g<cr>'z