Change color of no line

32 views
Skip to first unread message

Ni Va

unread,
Aug 23, 2016, 4:32:29 AM8/23/16
to vim_use
Hi,


I would like to change the bg color of "no line" and of buffer.

_________________________________
line0
line1
.
.
lineN
~ <<< this ONE
_________________________________

I don't succeed to find the match name pattern.

Thank you

Christian Brabandt

unread,
Aug 23, 2016, 5:22:25 AM8/23/16
to vim...@googlegroups.com
Hi,
recent Vim builds include the EndOfBuffer highlighting group.
You can use that to change the highlighting.

Best,
Christian

Ni Va

unread,
Aug 23, 2016, 5:32:08 AM8/23/16
to vim_use

Seems to fail :

" Vim color file -- with 256 colour support!
"
" Author: Anthony Carapetis <anthony....@gmail.com>
" Contributors: Lucas Tadeu <lucastade...@gmail.com>
"
" Note: Based on github's syntax highlighting theme
" Used Brian Mock's darkspectrum as a starting point/template
" Thanks to Ryan Heath for an easy list of some of the colours:
" http://rpheath.com/posts/356-github-theme-for-syntax-gem

set background=light

if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif

let colors_name = "github"

" {{{ General colors
hi Normal ctermfg=0 ctermbg=255 guifg=#222222 guibg=#bbbbbb
hi EndOfBuffer ctermfg=0 ctermbg=255 guifg=#222222 guibg=#bbbbbb
hi Cursor ctermfg=239 ctermbg=15 guifg=#aaaaaa guibg=#dddddd

Ni Va

unread,
Aug 23, 2016, 5:37:00 AM8/23/16
to vim_use
On Tuesday, August 23, 2016 at 11:22:25 AM UTC+2, Christian Brabandt wrote:
github.vim

Christian Brabandt

unread,
Aug 23, 2016, 5:47:45 AM8/23/16
to vim...@googlegroups.com
Am 2016-08-23 11:32, schrieb Ni Va:
> On Tuesday, August 23, 2016 at 11:22:25 AM UTC+2, Christian Brabandt
> wrote:
>> Am 2016-08-23 10:32, schrieb Ni Va:
>> > I would like to change the bg color of "no line" and of buffer.
>> >
>> > _________________________________
>> > line0
>> > line1
>> > .
>> > .
>> > lineN
>> > ~ <<< this ONE
>> > _________________________________
>> >
>> > I don't succeed to find the match name pattern.
>> >
>>
>> recent Vim builds include the EndOfBuffer highlighting group.
>> You can use that to change the highlighting.
>
> Seems to fail :

Well, check your Vim version then.

Best,
Christian
Message has been deleted

Ni Va

unread,
Aug 23, 2016, 7:11:54 AM8/23/16
to vim_use

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 5 2016 12:02:25)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-1901

Christian Brabandt

unread,
Aug 23, 2016, 8:19:03 AM8/23/16
to vim_use
On Di, 23 Aug 2016, Ni Va wrote:

> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 5 2016 12:02:25)
> MS-Windows 64-bit GUI version with OLE support
> Included patches: 1-1901

It's not in there:
#v+
~/vim$ git log -v v7.4.2213 -1
commit 58b853460add42098ab08017df9e030fb14fd34b
Author: Bram Moolenaar <Br...@vim.org>
Date: Sun Aug 14 19:54:54 2016 +0200

patch 7.4.2213
Problem: Cannot highlight the "~" lines at the end of a window differentl
Solution: Add the EndOfBuffer highlighting. (Marco Hinz, James McCoy)
#v-



Best,
Christian
--
Wendet sich der Pastor während der kirchlichen Trauung
verärgert an den Bräutigam: "Junger Mann, ich bin es
gewohnt, daß man auf meine Frage mit einem klaren "Ja"
antwortet und nicht mit einem "Meinetwegen!"

Ni Va

unread,
Aug 23, 2016, 8:27:19 AM8/23/16
to vim_use
Ok thanks I upgrade my version. Thank you very much Christian !
Reply all
Reply to author
Forward
0 new messages