On Tuesday, January 29, 2013 8:13:59 PM UTC+13, Axel Bender wrote:
> virtcol(...) doesn't "work" in the example given. Please note that the 
> end/start - depending from where you start to select - of the block is in the 
> "void", i.e. after the line's end (as indicated by "$"). Here even 
> virtcol(...) returns 1.
(Sorry, I thought the $ characters were part of the text.  And I was moving 
right, not up.)
The result depends on the setting of the 'virtualedit' option.  If this is "" 
(the default) or "block", by the time the echo command is executing, vim is out 
of visual mode and the cursor can no longer be positioned "where there is no 
actual character", to quote :help 've'.

If I set ve=all, then :echo virtcol("'<") does indeed say 4.  I think you've 
got ve=block.

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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to