[EMAIL PROTECTED] wrote:
Hi Guys.
I really like this list.
Everyone is so helpful.
That's not just a suck-up (-:
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.
Iow. What started out looking like:
/~~~~~~~~~~~~~~~~~~~~~
public WOComponent deletePersonAction() {
DeletePerson nextPage
= (DeletePerson) pageWithName("DeletePerson");
nextPage.setPerson(personIter);
return nextPage;
}
\_____________________
ends up looking like:
/~~~~~~~~~~~~~~~~~~~~~~
public WOComponent deletePersonAction() {
DeletePerson nextPage
= (DeletePerson) pageWithName("DeletePerson");
nextPage.setPerson(personIter);
return nextPage;
}
\______________________
So. All existing indents get increased.
Is there any way I can undo this?
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.
Keep up the great work.
Kind regards.
Luke Vanderfluit.
Possibility 1: try ':set paste' temporarily while pasting. (To clear it,
use ':set nopaste'.)
Possibility 2: after pasting, reindent the just pasted text with
`[=`]
(backtick, open-bracket, equal-sign, backtick, close-bracket).
If one of the above methods doesn't work, try the other.
see
:help 'paste'
:help `[
:help =
Best regards,
Tony.