-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Kelling wrote:
> For 5. There is an option called 'paste'. I suggest you read about it, and
> if you want, you could bind a key to something similar to
> :set paste/<esc>"+p:set nopaste. I forget the exact syntax.
Yes, but the point is still valid. I paste, then I find that I forgot to set
'paste', afterwards I forget to reset 'paste'.

I'd like to have an option 'autopaste' or whatever that assumes an insert at
above say 20 chars / second has been pasted.

The obvious problem here are slow terminals. I have typed ahead more than 20
characters on many occasions. Also the question is, how to determine the end
of the pasted text. In my opinion, the user must be sure that either the one
or the other behaviour has occured, it must not be the case that VIm decided
to treat only 90% of the pasted text as pasted, just because of the unevenly
slow terminal. I think the best option is to consider an insert action paste
or not-paste as a whole. This gives a clear boundary for the measurements. A
user might still find this a bit irritating, but I usually don't switch from
VIm terminals while in insert mode. Hence I usually do a separate insert for
each paste.

But I don't know how much timing is available in the VIm input system. And I
don't know how to handle the redrawing after the decision has been made. The
screen would usually show something during the insert operation itself, only
once the insert has been decided to be 'paste', this could be switched of. I
think the cost of just redrawing everything afterwards is probably ok, in an
insert which was pasted.

Jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIfUIrzhchXT4RR5ARArwuAKC+Kugv8EWKVhpYkkFywGu5UG6fWACdFnhQ
RMBUQSJlOiFc0sx32+StDSg=
=jdCr
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui