Thursday, December 2, 2010

Re: function virtcol() doesn't return the expected value

On Thu, December 2, 2010 11:48 pm, Dominique Pellé wrote:
> I think that's the expected behavior. There are 2 concealed
> characters on line 1247. Conceal feature affects how the
> line is displayed but not the return value of functions such
> as virtcol('.').
>
> You can show the concealed char with: :set conceallevel=0

I have not yet looked into concealing in detail. But is it expected,
that moving the cursor over concealed chars takes them into account?
For example:
:h editing.txt
1247
norm! 53|
norm! 2l

Note, that you need to press "l" 2 times for moving the cursor 2 chars
to the right, but it actually moves the cursor only one cell to the right.
I can understand, why this is done, but it seeems a little bit unexpected.

regards,
Christian

--
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

No comments: