Monday, July 5, 2021

Re: CTRL+V I CTRL+Y - duplicating text from current line.

On Mon, Jul 05, 2021 at 03:20:17AM EDT, 'Jürgen Krämer' via vim_use wrote:
> Hi,
>
> Chris Jones schrieb am 03.07.2021 um 21:50:

[...]
>
> > Is there a better way (excluding mouse'ing and plugin'ing) to achieve
> > this?
>
> "A" in visual block mode is expected to first extend a line if 'virtualedit'
> is set to "block" or "all" and the cursor is placed beyond the end of line,
> so you might want to change the first step to "t<" and the sixth one to "A".

I should have mentioned that I indifferently use 'I' or 'A' depending on
the circumstances and that the result is the same. I have to force the
padding of the lines with spaces up to the insertion point (col. 60 in
the example) for it to work.

Small issue but I think this is not consistent behaviour: whatever the
doc says the user would expect block insert to insert something rather
than be left wondering uh-oh... what did I do wrong THIS time... :)

Not making an issue of it but perhaps virtualedit= should have an
additional flag that says complete all lines with white space before
performing the block insert?

Thanks,

CJ

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YOORxbQnOcpva%2B9V%40turki.local.

No comments: