Thursday, March 18, 2010

Re: paste via "shift+insert" in gnome-terminal sucks when set fo+=cro

On Fri, Mar 19, 2010 at 7:52 AM, John Little <john.b.little@gmail.com> wrote:

>
> No, vim is just getting the pasted text from gnome-terminal, as if
> you'd typed it.  It seems to be hard coded into gnome-terminal (or the
> terminal widget it uses); there's chatter about it in the bug
> trackers.  If you press shift-insert while in normal mode and your
> selected text on the other tab starts with 100dd, you'll delete 100
> lines.

Good to know that I am not the only one to hate it...

>
>> I know I can map a shortkey, such as "map <F5> :set paste!",
>> but i hate it since it need two more hits.
>
> You could use mappings like:
>
> map  <Insert> "*p`]
> imap <Insert> <c-o>"*p<c-o>`]
>
> though you might have to tweak the cursor position to suit what you
> expect; maybe
>
> imap <insert> <esc>"*P']ji
>
>

I have tested your maps, seems not working.
anyway, I decide to map F5 and strike when needed...

--
FIXME if it is wrong.

--
You received this message from the "vim_use" 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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments:

Post a Comment