Loading ...
Sorry, an error occurred while loading the content.

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

Expand Messages
  • Ben Fritz
    Jan 30, 2013
    • 0 Attachment
      On Wednesday, January 30, 2013 10:35:21 AM UTC-6, Axel Bender wrote:
      > 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?

      Because with ve=all, the cursor is allowed to be outside the real text lines even when not in visual mode.

      --
      --
      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 17 messages in this topic