Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 38823  / 2 Years ago, tue, november 15, 2022, 4:12:00

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.


More From » vim

 Answers
6

In .vimrc, replace



set background=dark


with



highlight Normal ctermfg=grey ctermbg=black

[#31875] Tuesday, November 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urvedcaly

Total Points: 171
Total Questions: 118
Total Answers: 124

Location: Cape Verde
Member since Fri, Nov 27, 2020
4 Years ago
urvedcaly questions
Tue, Nov 8, 22, 19:40, 2 Years ago
Fri, May 26, 23, 15:27, 1 Year ago
Wed, Jan 19, 22, 08:09, 2 Years ago
Thu, May 13, 21, 03:34, 3 Years ago
;