Saturday, July 24, 2010

question about concealed items and %V in 'statusline'

Hi

My 'statusline' contains (among other things) %l,%c%V to show the
position of the cursor. According to :help 'statusline' :

l N Line number.
c N Column number.
V N Virtual column number as -{num}. Not displayed if equal to 'c'.

The meaning of %l and %c is clear to me. But I'm wondering what
"Virtual column" means now that we have concealed items in Vim-7.3.

I see that if I put the cursor on a line with concealed items before the
cursor, the %V does not show up (because it's identical to %c).

For example, starting Vim-7.3b BETA (2397:0c8219a26bc9) with:

$ vim -u NONE -c 'syntax on|filetype on|filetype plugin on' \
-c 'set statusline=%l,%c%V' -c ':help' -c 'norm 3|'

statusline in help window shows "1,3" (1st line, 3rd column). I'm
wondering whether it should show "1,3-2" instead because of the
concealed | character before the cursor.

What is the expected behavior here?

-- Dominique

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

Post a Comment