Consider the following script:
vim -u NONE -c 'set ve=all | call setline(".", ["\t"])' \
-c 'echo virtcol([1, 1])'
If you run it you will see 1 on the screen, while expected value is 8.
According
to the help
> The result is a Number, which is the screen column of the file
> position given with {expr}. That is, the last screen position
> occupied by the character at that position, when the screen
> would be of unlimited width.
Setting virtualedit does not alter screen width of character and nothing in the
further text says that 've' affects virtcol output for [line, col] expr.
signature.asc
Description: This is a digitally signed message part.
