Hi,
Meino Christian Cramer schrieb:
>
> finally I found (nearly) what I am searching for...but...
>
> I wanted a command which after doing a y$ from in the midth of a
> line, puts my yanked text after the end of the line and the cursor
> right after the put text.
>
> The help of "gP" states (my im is "nocompatible"):
>
> ["x]gP Just like "P", but leave the cursor just after
> the new
> text. {not in Vi}
>
>
> But it seems I understand the help wrongly. Example:
>
> This is a very boring example of a line.
> x
>
> (x=position of the cursor)
>
> I do a y$gP and the line looks like:
>
> This is a very boring example of a line.a very boring example of a line.
> x
>
> The help says:
> ...but leave the cursor just after the *new*
> text.
it did.
> What did I so wrong here ? What did I misundertstand ?
You missed to go to the end of line before putting the text:
y$$gp
Note the second dollar sign. "y$" alone does leave the cursor at its
current position. The second "$" then puts the cursor on the last
character of the line. "gp" (with *lower* case ell) appends the yanked
text. If you had chosen a different text to put than the one the cursor
is in front of, the result of your command would have been more
obvious.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)