Skip to content

Commit

Permalink
Vim: Apply different airline theme for true color mode
Browse files Browse the repository at this point in the history
When 24-bit colors are enabled (termguicolors), use a
slightly different appearance and color themes.
  • Loading branch information
wookayin committed Oct 8, 2017
1 parent f279ee0 commit 77d7d0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,14 @@ call s:auto_termguicolors()
" apply base theme
silent! colorscheme xoria256

" airline theme: status line and tab line
if &termguicolors
let g:airline_theme='deus'
else
let g:airline_theme='bubblegum'
endif


" override more customized colors
highlight StatusLine ctermfg=LightGreen
highlight ColorColumn ctermbg=52 guibg=#5f0000
Expand Down Expand Up @@ -654,9 +662,9 @@ let g:EditorConfig_core_mode = 'python_external'

" ---------------------------------------------------------------- }}}
" Airline {{{
" Note: for airline theme, see the 'appearance' section

" use airline, with powerline-ish theme
let g:airline_theme='bubblegum'
let g:airline_powerline_fonts=1

" enable tabline feature
Expand Down

0 comments on commit 77d7d0d

Please sign in to comment.