Sunday, November 2, 2014

Re: Trouble using blockwise actions on visual selections in a function/command

I've part of the answer. line('v') get's the start of the visual selection. From the docs:

v In Visual mode: the start of the Visual area (the
cursor is the end). When not in Visual mode
returns the cursor position. Differs from '< in
that it's updated right away

"right away" works as I'd expect, and I can grab the start of the block. But, not the end of the block :-(

--
--
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: