On 2006-08-01, [EMAIL PROTECTED] wrote:
> I have the following problem:
> When I cut and paste on my linux box, from one vi instance to
> another, I get all the indents of the 'from' file in addition to
> the indents that get inserted on newline.
[...]
> Obviously I have my editor set so it automatically indents to the
> same as the previous line, when I hit return.
> I'd like to _not_ have to undo this feature to get the pastes
> happen properly.
If you "set mouse=a", then you can paste (using the middle mouse
button) in either insert or normal mode and then indentation of the
copied text will be preserved, just as though 'paste' had been set
before you pasted.
For those situations where you want the pasted text to be
inserted as though it came from the keyboard, as it does now, simply
hold the shift key down while you press the middle mouse button.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
| Spokane, Washington, USA