Friday, December 4, 2015

Re: [Bulk] programmatically determine blockwise visual mode

Hi 'Andy!

On Fr, 04 Dez 2015, 'Andy Wokula' via vim_use wrote:

> Am 04.12.2015 um 13:01 schrieb Christian Brabandt:
> >Hi,
> >let's say I have script, that wants to work on the last visually
> >selected region, e.g. highlight it.
> >
> >Is there any way, to find out, whether the last block-wise selected
> >region used '$' for selection (see :h v_$) or not? This matters, since
> >when using the '$' in visual block mode, all lines up to the end will be
> >selected, while when simply using the cursor to select the end point,
> >only up to the column specified in the last line will be acted on.
>
> ... and just gvy and inspecting the yanked text is probably not among the
> accepted answers.

well, it is certainly a possibility. I just want to avoid looping
through the yanked text, since i might have to do it in the worst case
for every line.

Best,
Christian
--
Dein tägliches Quantum Sonnenschein mußt du dir täglich selbst
verdienen.
-- Hermann Sudermann

--
--
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/d/optout.

No comments: