I'm new to NeoVim and just getting started.
My init.vim file under NeoVim\share\nvim\runtime\plugin\init.vim successfully sets everything except for the colorscheme and background.
As seen in the image below, the numbers, color column, etc are all being set correctly, but the colorscheme and background commands are not occurring.

enter image description here

However, upon typing the commands :colorscheme default and :set background=dark, everything works fine.
enter image description here

Here's my init.vim file:

let mapleader="`"
set tabstop=4
set shiftwidth=4
set number
set cursorline
filetype indent on
set wildmenu
set showmatch
set hlsearch
set incsearch
set colorcolumn=80
vmap <C-S-C> "+y
map <C-S-V> "+p
noremap V <C-V>
map <F5> :!j @%
syntax enable
colorscheme default
set background=dark

I'm running NVIM v0.3.1 through CMD on Windows 10.
Other than the init.vim file, this is a fresh install.
Is this a known issue with NeoVim?

  • Hi there, welcome to the Vi & Vim Stack Exchange! Questions about vimrc's and config files should generally include the configuration in question, so those answering have something to go on. Would you mind including your vimrc to help narrow down the issue?
    – ZeroKnight
    Sep 22, 2018 at 21:10
  • @ZeroKnight ah yes; the entire vimrc is visible in the pictures, but I'll add it in text form anyway.
    – ei2
    Sep 22, 2018 at 22:25
  • If you use colorscheme blue in your init.vim, does it have an effect? I see you're trying to use colorschme default at the moment, which doesn't set any colors at all, only leaving them at the default colors from your terminal, which depends on your terminal emulator and what colors you have it set to use.
    – ZeroKnight
    Sep 23, 2018 at 0:47
  • 1
    Also be sure to read this question because set background might not do exactly what you think.
    – statox
    Sep 24, 2018 at 7:09

1 Answer 1


I had the same problem with a autocmd ColorScheme * block after the colorscheme line. This worked in vim, but for nvim I had to switch it to:

autocmd ColorScheme *
        \ highlight constant ctermfg=160 |
        \ highlight special ctermfg=11
colorscheme darkblue

I guess in your case it’s the same with set background=dark, try putting the colorscheme line below it (cf. What does :set background=dark do?)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.