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

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

Expand Messages
  • John Little
    Jan 29, 2013
    • 0 Attachment
      On Wednesday, January 30, 2013 3:08:04 AM UTC+13, Axel Bender wrote:

      >If(!) I'm able to create a block with corners in the void using 'block' mode, >then why should virtcol() not adapt to that?

      It does, the point in your example is the observation affecting the result. By going to the command line, vim has gone out of visual block mode. If your plug-in is careful, it can avoid this. For example,

      :vmap <expr> z Col()
      :fun! Col()
      echo virtcol("'<")
      return ""

      Select a block and press z. If ve=block, when virtcol is called vim is still in visual block mode.

      Regards, John

      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