1 Tests for ":highlight". vim: set ft=vim :
5 :" basic test if ":highlight" doesn't crash
8 :" test setting colors.
9 :" test clearing one color and all doesn't generate error or warning
10 :hi NewGroup term=bold cterm=italic ctermfg=DarkBlue ctermbg=Grey gui= guifg=#00ff00 guibg=Cyan
11 :hi Group2 term= cterm=
12 :hi Group3 term=underline cterm=bold
26 :" filter ctermfg and ctermbg, the numbers depend on the terminal
28 :%s/ctermfg=\d*/ctermfg=2/
29 :%s/ctermbg=\d*/ctermbg=3/
30 :" filter out possibly translated error message
31 :%s/E475: [^:]*:/E475:/