On 10 Dec 2013, at 20:06, Christian Brabandt <cblists@256bit.org> wrote:
> On Di, 10 Dez 2013, Alexey wrote:
>
>> Hello,
>>
>> can this be considered a bug, or is there a reason for it?
>>
>> If i paste with 'p' a piece of text that does not have line breaks in
>> it, the cursor is left on the last character of the pasted text.
>>
>> If i paste with 'p' a piece of text that has line breaks in it, the
>> cursor is left on the first character of the pasted text.
>>
>> Why?
>
> TL;DR: this is demanded by the standard.
>
> In more detail: Vim doesn't seem to fully adhere to the somewhat
> confusing standard. But I am not sure, it is worth fixing it. For
> positioning the cursor always at the end of the pasted text, you can use
> the gp and gP commands. For more information (with links to the relevant
> standard), you might want to read the thread at the vim_dev list
> starting at:
> https://groups.google.com/d/msg/vim_dev/E-vZy50zjV4/iyffVMMTqakJ
Thanks for the link.
Alexey.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Tuesday, December 10, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment