Hi,
Gautier DI FOLCO wrote:
> Hi,
>
> Le 19 mars 2012 20:11, Jürgen Krämer <[email protected] <mailto:[email protected]>> a
> écrit :
>
> What do you mean with "are vertically cut"? Don't you see the
> complete glyphs? This might be because these glyphs might be wider
> than "normal" characters in the current font.
>
> How did you set the statusline option? I did set it from my .vimrc
> and no autocommand or function was involved.
>
> What happens if you try a shorter example like
>
> set statusline=%f\ %7*%{&modified?'✖':''}%8*%{&modified?'':'✔'}\
> %4*%{&encoding}
>
> With this line (and only this line), the area, which was three
> characters before, in fact no more than 2 of 8 style, with the V in
> the box the first character and when the file is only change his style
> and V are replaced, i.ethe second character remains in style 8.
sorry, but I don't understand your explanation.
Here is an example without those special characters:
hi User4 ctermfg=yellow guifg=yellow
hi User7 ctermfg=red guifg=red
hi User8 ctermfg=green guifg=green
set statusline=%f\ %7*%{&modified?'X':''}%8*%{&modified?'':'V'}\
%4*%{&encoding}
With an unmodified, new buffer this results in a status line with
"[No Name]" highlighted with the current values for :hi StatusLine,
a green "X" and the encoding in yellow.
After creating a new buffer and changing it I see a red "X" in the
status line of the new buffer; the status line of the first buffer
still has a green "V". Creating and editing buffers and switching
between them always gives red "X"s for modified und green "V"s for
unmodified buffers.
Do you see the same? Do you expect a different display?
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--
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