Monday, August 13, 2012

Re: always paste as if :set pate is on.

On Mon, Aug 13, 2012 at 12:22:38AM EDT, sinbad wrote:

> how do i make vim think that the set paste option is set if i'm
> pasting output from outside. i use shift-insert to paste, can this be
> mapped to set/unset paste?

A different approach is to do one's pasting in insert mode via i_CRTL-R
and friends.

| :h i_CTRL-R
| :h i_CTRL-R_CTRL-O
| :h i_CTRL-R_CTRL-P

Pros:

No complicated remapping and should work out of the box, whatever the
terminal..

Cons:

The 'R' and the 'O/P' keys are far apart on the keyboard (but easier
to reach than a laptop's half-size Insert key).

CJ

--
Hi! My name is bobby...

--
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

No comments: