" Reset all styles first
highlight clear

" Highlight with file types
highlight /^.*\.(ada|asm|awk|bash|c|caml|cc|cgi|cpp|cxx|diff|erl|h|hh|hi|hpp|hs|inc|jasm|jav|java|js|m4|mak|mjs|ml|mli|mll|mlp|mly|pas|patch|php|phps|pl|pm|prg|py|rb|sas|sh|sl|st|tcl|tk|xq)$/ cterm=none ctermfg=012 ctermbg=default
highlight /^.*\.(zip|iso|rar|7z|Z|ace|arc|arj|ark|bz2|cab|gz|lha|lz|lz4|lzh|lzma|rar|rpm|tar|tbz|tbz2|tgz|tlz|txz|tzst|xz|zip|zoo|zst)$/ cterm=none ctermfg=009 ctermbg=default
highlight /^.*\.(cdx|dat|db|dbf|dbi|dbx|fox|mdb|mdn|mdx|msql|mssql|pgsql|sql|ssql)$/ cterm=none ctermfg=014 ctermbg=default
highlight /^.*\.(ai|bmp|cdr|eps|gif|ico|jpeg|jpg|omf|pcx|pic|png|rle|svg|tif|tiff|webp|wmf|xbm|xcf|xpm)$/ cterm=none ctermfg=011 ctermbg=default
highlight /^.*\.(3gp|aac|ac3|ape|asf|avi|dts|flac|flv|it|m3u|m4a|med|mid|midi|mkv|mod|mol|mov|mp2|mp3|mp4|mpeg|mpg|mpl|ogg|ogv|oga|s3m|umx|vob|wav|webm|wma|wmv|xm)$/ cterm=none ctermfg=013 ctermbg=default
" highlight /^.*\.(chm|css|ctl|diz|doc|docm|docx|dtd|htm|html|letter|lsm|mail|man|me|msg|nroff|odp|ods|odt|pdf|po|ppt|pptm|pptx|ps|rtf|sgml|shtml|tex|text|txt|xls|xlsm|xlsx|xml|xsd|xslt)$/ cterm=none ctermfg=012 ctermbg=default
" highlight /^.*\.(~|$$$|bak|tmp)$/ cterm=none ctermfg=008 ctermbg=default

" General highlight
highlight Border	       cterm=none	ctermfg=002	ctermbg=default

highlight TopLine	       cterm=none	ctermfg=004	ctermbg=default
highlight TopLineSel	   cterm=bold	ctermfg=004	ctermbg=008

highlight TabLine	       cterm=none	ctermfg=004	ctermbg=default
highlight TabLineSel	   cterm=bold,inverse	ctermfg=004	ctermbg=default

highlight Win		         cterm=none	ctermfg=015	ctermbg=default
highlight Directory	     cterm=bold	ctermfg=004	ctermbg=default
highlight CurrLine	     cterm=bold,inverse	ctermfg=default	ctermbg=default
highlight LineNr	       cterm=bold ctermfg=004	ctermbg=default
highlight OtherLine	     cterm=bold	ctermfg=default	ctermbg=default
highlight Selected	     cterm=none	ctermfg=003	ctermbg=008

highlight JobLine	       cterm=bold	ctermfg=008	ctermbg=015
highlight StatusLine	   cterm=none	ctermfg=004	ctermbg=default
highlight ErrorMsg	     cterm=bold	ctermfg=001	ctermbg=default
highlight WildMenu	     cterm=bold	ctermfg=003	ctermbg=008
highlight CmdLine	       cterm=none	ctermfg=default	ctermbg=default
highlight SuggestBox	   cterm=none	ctermfg=002	ctermbg=default

highlight Executable	   cterm=bold	ctermfg=002	ctermbg=default
highlight Link		       cterm=bold	ctermfg=006	ctermbg=default
highlight HardLink		   cterm=bold	ctermfg=008	ctermbg=default
highlight BrokenLink	   cterm=bold	ctermfg=001	ctermbg=default
highlight Device	       cterm=bold,standout ctermfg=000	ctermbg=011
highlight Fifo		       cterm=none	ctermfg=003	ctermbg=default
highlight Socket	       cterm=bold	ctermfg=005	ctermbg=default
