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 ""
endf
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@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment