sameera207
sameera207

Reputation: 16619

Getting solarized theme working with vim + vim-airline-themes

I'm trying to get a vim-airline theme working with my vim, the theme I'm after is solarized dark.

The following is my .vimrc file:

 # .vimrc
 " let Vundle manage Vundle, required
 Plugin 'VundleVim/Vundle.vim'

 call vundle#begin()

 Plugin 'vim-airline/vim-airline'
 Plugin 'vim-airline/vim-airline-themes'
    <more plugins>
 call vundle#end()

 let g:airline#extensions#tabline#enabled = 1
 let g:airline#extensions#tabline#left_sep = ' '
 let g:airline#extensions#tabline#left_alt_sep = '|'
 let g:airline#extensions#tabline#formatter = 'default'

 let g:airline_theme='solarized'
 let g:airline_solarized_bg='dark'

And the following is what my editor looks like currently:

enter image description here

What am I missing here?

Upvotes: 0

Views: 1630

Answers (2)

R. Meier
R. Meier

Reputation: 1

You are missing set background=dark in your .vimrc

You can also try setting this in vim first with :set background=dark

Upvotes: 0

Lucas Caton
Lucas Caton

Reputation: 3255

I only have the following configs in my Vimfiles and airline theme follows the main theme:

set laststatus=2
let g:airline_powerline_fonts = 1

Upvotes: 0

Related Questions