.vimrc: Set airline theme in Theme section
authorTony Duckles <tony@nynim.org>
Mon, 18 Dec 2017 02:19:11 +0000
committerTony Duckles <tony@nynim.org>
Mon, 18 Dec 2017 02:28:09 +0000
.vimrc

diff --git a/.vimrc b/.vimrc
index 7993d11c339c169bb5a2195c3e687862abe293d5..8aaeb42a016da8e6ba6ea032fa1c9e0fa97c5be9 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -78,6 +78,9 @@ if &t_Co > 2 || has("gui_running")
   " Solarized color-scheme
   let g:solarized_termtrans=1  " Always use terminal's default bg color
   colorscheme solarized
+  " Airline solarized theme
+  let g:airline_theme='solarized16'
+  let g:solarized16_termcolors=16
 endif
 
 " ---------------------------------------------------------------------------
@@ -156,7 +159,6 @@ if !exists(':AirlineTheme')
   set statusline+=\ %12.(%v,%l/%L%)\ \ %-4P  " cursor position, % through file of viewport
 endif
 
-let g:airline_theme='solarized16'
 let g:airline_mode_map = {
   \ '__' : '-',
   \ 'n'  : 'N',