On Mar 18, 11:07 pm, Ryan J M <[email protected]> wrote: ...pasting trouble...
> I tried to remap <S-Insert> > in .vimrc to "set paste!" before and after pasting, but it seems only > works in gvim, not for my gnome-terminal+vim. > I guess "shift+insert" > has been translated into another code by gnome-terminal... 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. > 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 would be better. Regards, John -- 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.
