l-qing / xterm-256color.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Here's a shorter script that displays a sample of all 256 cterm colors, by appending to the current buffer:

let num = 255
while num >= 0
    exec 'hi col_'.num.' ctermbg='.num.' ctermfg=white'
    exec 'syn match col_'.num.' "ctermbg='.num.':...." containedIn=ALL'
    call append(0, 'ctermbg='.num.':....')
    let num = num - 1
endwhile

About


Languages

Language:Vim Script 100.0%