knowledge-database (beta)

Current group: comp.editors

Vim on WIndows: can't paste using normal keys

Vim on WIndows: can't paste using normal keys  
lduperval at gmail.com
 Re: Vim on WIndows: can't paste using normal keys  
Sven Guckes
 Re: Vim on WIndows: can't paste using normal keys  
lduperval at gmail.com
 Re: Vim on WIndows: can't paste using normal keys  
Sven Guckes
From:lduperval at gmail.com
Subject:Vim on WIndows: can't paste using normal keys
Date:18 Jan 2005 07:09:42 -0800
Hi,

I'm using Vim 6.3 and for some reason, I am unable to paste properly.
For example, if I select a line and Y it, then go to a different
buffer, when I paste, something else is pasted (always the same thing,
but I don't know where it comes from; maybe something I yanked a long
time ago). If I Y & P in the same file, it works as expected. If I
split the file in two and switch buffers before pasting, it doesn't
paste the correct information.

I'm using 6.3 on Windows XP.
Has anyone else seen this kind of behaviour?

L
From:Sven Guckes
Subject:Re: Vim on WIndows: can't paste using normal keys
Date:18 Jan 2005 18:22:37 GMT
* [2005-01-18]:
> I'm using Vim 6.3 [on Windows XP] and for some reason,
> I am unable to paste properly. For example, if I
> select a line and Y it, then go to a different buffer,
> when I paste, something else is pasted (always the
> same thing, but I don't know where it comes from;
> maybe something I yanked a long time ago).

do you have a reproducible example?

> If I Y & P in the same file, it works as expected.
> If I split the file in two and switch buffers before
> pasting, it doesn't paste the correct information.

that's not enough - sorry. please give *all* commands.

do you have a standard setup? maybe you have some
additional autocommands triggered by entering buffers?

Sven
From:lduperval at gmail.com
Subject:Re: Vim on WIndows: can't paste using normal keys
Date:20 Jan 2005 07:13:18 -0800
Yes, I have a reproducible example, but only on my machine. Whenever I
yank something (anything, using highlighting or blocking or just doing
it from the current line) and I change buffers, then press "P", the
following is inserted:



All the time. Every time. However, if I do "+Y then "+P, whatever I
yanked is pasted correctly.

Here is an example:

sYP

If I am on a line that says:

Yank this

When I press P I get



......

Ding! I went to check my _viminfo line and for "0, it said .
For some reason, that file was not updated. I deleted it and we'll see
what happens.

Thanks,

L
From:Sven Guckes
Subject:Re: Vim on WIndows: can't paste using normal keys
Date:20 Jan 2005 16:35:03 GMT
* lduperval@gmail.com [2005-01-20]:
> Yes, I have a reproducible example, but only on my machine.
> Whenever I yank something (anything, using highlighting or
> blocking or just doing it from the current line) and I
> change buffers, then press "P", the following is inserted:
>
>
>
> All the time. Every time.
> However, if I do "+Y then "+P, whatever I
> yanked is pasted correctly.

> I went to check my _viminfo line and for "0, it said .
> For some reason, that file was not updated.
> I deleted it and we'll see what happens.

well.. you should start vim without
any setup files (eg "vim -u NONE").
if the effect does not take place
then it is somewhere in your setup.

wild guess: there's some autocommand getting
in your way which resets the default register.

also check the P command with
:map P
maybe it is mapped?!

Sven
   

Copyright © 2006 knowledge-database   -   All rights reserved