Lightline.vim: Status bar doesn't show colors in normal mode

Created on 13 May 2020  路  2Comments  路  Source: itchyny/lightline.vim

Hello,
when I open vim with the following .vimrc file, the normal mode doesn't show colors. Insert, visual and replace mode do show. After running :source ~/.vimrc the normal mode shows colors too.
My .vimrc file:

" vundle
set nocompatible " be iMproved, required
filetype off " required

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'morhetz/gruvbox'
Plugin 'itchyny/lightline.vim'

call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append ! to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append ! to refresh local cache
" :PluginClean - confirms removal of unused plugins; append ! to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

set number
syntax on

set background=dark
let g:gruvbox_constrast_dark = 'hard'
autocmd vimenter * colorscheme gruvbox

set laststatus=2 " enable lightline colors
set noshowmode " removes default mode indication
set ttimeout ttimeoutlen=50 " removes delay of switching modes

Doing the steps in README didn't help.
I'm running vim on macOS Mojave inside the terminal and I haven't installed vim via homebrew, I use the preinstalled one.

Most helpful comment

I think there's no need to delaying the colorscheme so fix

colorscheme gruvbox

instead of

autocmd vimenter * colorscheme gruvbox

All 2 comments

I think there's no need to delaying the colorscheme so fix

colorscheme gruvbox

instead of

autocmd vimenter * colorscheme gruvbox

this fixed it, thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yunlingz picture yunlingz  路  4Comments

indiesquidge picture indiesquidge  路  4Comments

Blosberg picture Blosberg  路  4Comments

ahmedelgabri picture ahmedelgabri  路  3Comments

ayutheos picture ayutheos  路  4Comments