Rob Foehl wrote:
> On Sat, 21 Jan 2017, Bram Moolenaar wrote:
>
> > Patch 8.0.0210
> > Problem: Vim does not support bracketed paste, as implemented by xterm
> > and
> > other terminals.
> > Solution: Add t_BE, t_BD, t_PS and t_PE.
>
> Thanks for this, nice to see native support in Vim. Minor typo fix below.
Thanks.
> I'm a little confused by this part in normal.c:
>
> + case K_PS: /* bracketed paste works like "a"ppend */
>
> <MiddleMouse> pastes work like insert, as does insert mode <C-R><C-O> --
> shouldn't these be consistent?
When Vim deals with the paste we know the mouse position, thus one can
point to a character to insert before, or after the last character to
append. With bracketed paste we don't know the mouse position, we only
have the cursor position. I think appending is the most common.
However, this makes it impossible to insert before the first column. We
could make it so that it inserts before the first column and otherwise
appends. This then makes it impossible to append after the first
character, but that's probably the best compromise.
--
TALL KNIGHT: We are now no longer the Knights Who Say Ni!
ONE KNIGHT: Ni!
OTHERS: Sh!
ONE KNIGHT: (whispers) Sorry.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.