I want to add background color to vimrc but it's not working
38,406
Solution 1
In .vimrc, replace
set background=dark
with
highlight Normal ctermfg=grey ctermbg=black
Solution 2
If you make the changes permanently that you did in Vim then you have to write the code in .vimrc then open the .vimrc file and then place this line
set background=dark
and then save & close . then open the Vim and you will see the changes.
Author by
Marin
Updated on September 18, 2022Comments
-
Marin over 1 year
I am forced to run this in my vim editor everytime I work.
highlight Normal ctermfg=grey ctermbg=black
What I want is for this to be automatic, I already have background set to dark but nothing is happening in vimrc. What should I do? Vimrc contents (first few lines)
syntax on set background=dark set ruler " show the line number on the bar set more " use more prompt set autoread " watch for file changes set number " line numbers
Thanks.