Tuesday, May 3, 2016

Re: 'syntax hi [...] start=[...] stop=[...]' has no effect

On Tue, May 03, 2016 at 05:08:00AM +0300, Nikolay Aleksandrovich Pavlov wrote:
> Based on the [code][1] I think it never supposed to work if t_Co is
> greater then 1. But for some reason I do not see this working when
> t_Co is 1 and setting start/stop for Normal highlight group. Other
> groups (tested on NonText only) seem to be fine. Though `hi Normal
> term=bold` neither works with t_Co set to 1.
>
> So this feature is intended for black and white terminals and works
> there. And it is documented: open `:h highlight-start` and scroll up
> to "1. highlight arguments for normal terminals". Higher there is some
> explanation what is normal and color terminal, though I would say
> rather strange explanation (while vt100 may be black-and-white (at
> least its entry does not state it supports any colors) xterm termcap
> entry states it supports 8 colors (256 colors is supported by
> xterm-256colors)).
>
> [1]: https://github.com/ZyX-I/vim/blob/6b82591127b58b9ef03790cb51e867b4fd575622/src/screen.c#L7862

Thanks! I had not noticed the heading.

When setting t_Co to 0 or 1, I am indeed able to get the effects I
want using 'start=' and 'stop='. I'll see if I can change my whole
colorscheme to work with terminal codes only, and if that works out,
I might write and release a plugin.

Sorry for the double post by the way.

--
mwnx
GPG: AEC9 554B 07BD F60D 75A3 AF6A 44E8 E4D4 0312 C726

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: