Wednesday, January 30, 2013

Re: How to determine the start of a visual block (C-V) when it starts in the void?

Hi Christian,

thanks for the answer. I completely go with you concerning <expr>, but this was not my original problem.

In fact, I already have a solution for it (temporarily setting ve to "all"), which doesn't require me to change any mapping.

However the inconsistency remains: when - with ve=block - I select a visual block and one corner is in the void, :<C-U>echo virtcol("'<") returns 1, while with ve set to "all" - the same command correctly(?) returns the start of the block.

If - as Ben said - by moving into the command line - I've ended visual mode, then why doesn't this hold for both settings?

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

No comments:

Post a Comment