Skip to content

Instantly share code, notes, and snippets.

@hara
Created July 31, 2013 13:20
Show Gist options
  • Save hara/6121904 to your computer and use it in GitHub Desktop.
Save hara/6121904 to your computer and use it in GitHub Desktop.
github theme of vim-airline
let s:file = [ '#bd2c00' , '#666666' , 1 , 240 , 'bold' ]
" Normal mode
let s:N1 = [ '#ffffff' , '#6cc644' , 255 , 2 ] " mode
let s:N2 = [ '#ffffff' , '#999999' , 255 , 248 ] " info
let s:N3 = [ '#ffffff' , '#666666' , 255 , 240 ] " statusline
let g:airline#themes#github#normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3, s:file)
let g:airline#themes#github#normal_modified = {
\ 'info_separator': [ '#999999' , '#333333' , 248 , 232 , '' ] ,
\ 'statusline': [ '#ffffff' , '#333333' , 255 , 232 , '' ] ,
\ }
" Insert mode
let s:I1 = [ '#ffffff' , '#4183c4' , 255 , 4 ]
let s:I2 = [ '#ffffff' , '#999999' , 255 , 248 ]
let s:I3 = [ '#ffffff' , '#666666' , 255 , 240 ]
let g:airline#themes#github#insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3, s:file)
let g:airline#themes#github#insert_modified = {
\ 'info_separator': [ '#999999' , '#333333' , 248 , 232 , '' ] ,
\ 'statusline': [ '#ffffff' , '#333333' , 255 , 232 , '' ] ,
\ }
" Replace mode
let g:airline#themes#github#replace = copy(g:airline#themes#github#insert)
let g:airline#themes#github#replace.mode = [ s:I1[0] , '#bd2c00' , s:I1[2] , 232 , '' ]
let g:airline#themes#github#replace.mode_separator = [ '#bd2c00' , s:I2[1] , 232 , s:I2[3] , '' ]
let g:airline#themes#github#replace_modified = {
\ 'info_separator': [ '#999999' , '#333333' , 248 , 232 , '' ] ,
\ 'statusline': [ '#ffffff' , '#333333' , 255 , 232 , '' ] ,
\ }
" Visual mode
let s:V1 = [ '#ffffff' , '#ff9933' , 255 , 3 ]
let s:V2 = [ '#ffffff' , '#999999' , 255 , 248 ]
let s:V3 = [ '#ffffff' , '#666666' , 255 , 240 ]
let g:airline#themes#github#visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3, s:file)
let g:airline#themes#github#visual_modified = {
\ 'info_separator': [ '#999999' , '#333333' , 248 , 232 , '' ] ,
\ 'statusline': [ '#ffffff' , '#333333' , 255 , 232 , '' ] ,
\ }
" Inactive
let s:IA = [ '#333333' , '#999999' , 232 , 248 , '' ]
let g:airline#themes#github#inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file)
@bling
Copy link

bling commented Aug 7, 2013

this is great! if you initiate a pull request i'd be happy to merge this into the main repo. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment