Nico Raffo wrote:

> On Jul 18, 2:32 pm, Bram Moolenaar <[email protected]> wrote:
> > > I'm not even sure what's the expected behavior here:
> > > should we expect the colorcolumn to be always at column 8
> > > on the screen, even with concealed items?
> >
> > I would say the line needs to be straight to be useful.
> >
> > Obviously the conceal feature blurs the meaning of the column number.
> >
> > I found the problem that caused the line not to be straight.  I'll push
> > the fix out soon.
> 
> I noticed a possibly related issue while playing around with
> conceallevel=3, nomodifiable today.
> 
> If a concealed character normally is displayed with more than one
> column, then column number calculations become incorrect when it's
> hidden.
> 
> E.g.:
> 
> vim -u NONE -N
> 
> then insert (with ^[ being escape character):
> 
> a^[bcd
> 
> then
> 
> :set conceallevel=3
> :set noma
> :syn match foo conceal "\e"
> 
> Now if you move the cursor down the line, it skips over the "c"
> character. Also, if you put the cursor on "d" and run getpos(".") you
> get the incorrect value "3"

That's normal for this conceal level.  The documentation should mention
this though.

AFAIK the level 3 is used to display a preview of text, without being
able to edit it.  E.g., when editing TeX in one window and viewing the
result in another window.

-- 
    With sufficient thrust, pigs fly just fine.
                   -- RFC 1925

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui