Timeline for Color scheme won't fully source from .vimrc
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 15, 2022 at 2:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 18, 2022 at 0:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 13, 2016 at 23:38 | comment | added | goldilocks |
@garyjohn When I added those new lines I alphabetized everything -- something I had forgotten but your explanation reminded me. However, moving "Normal" to the top didn't fix anything. What did is sourcing it via colorscheme (regardless of where Normal is). I fear my use of the term "color scheme" in the title and the fact that I called the sourced file colorscheme.vim may have caused some confusion -- the actual command is something I had never heard of. My .vimrc goes back more than a decade and I've just occasionally moved parts of it out to other files for sourcing.
|
|
Feb 13, 2016 at 23:24 | comment | added | garyjohn |
:help hi-normal-cterm recommends setting the colors for Normal first, before setting any other colors. My first suggestion is to move the hi Normal ... line to the top of the hi list. Next, I would set your colorscheme from your ~/.vimrc by executing colorscheme colorscheme rather than by sourcing the file so as to pick up any other steps Vim thinks is necessary when setting a colorscheme. Not that other approaches won't work, but if you're having trouble, the closer your attempt is to the "standard" solution, the better chance you will have finding someone who can spot the problem.
|
|
Feb 13, 2016 at 21:50 | answer | added | romainl | timeline score: 2 | |
Feb 13, 2016 at 20:49 | comment | added | goldilocks |
I've edited that in at the top. As indicated, nothing in vimrc was edited when I did this. The output of scriptnames includes it in order with other sourced scripts and does not change before or after sourcing it manually.
|
|
Feb 13, 2016 at 20:48 | history | edited | goldilocks | CC BY-SA 3.0 |
added 257 characters in body
|
Feb 13, 2016 at 20:40 | comment | added | muru |
How are you sourcing it in .vimrc ? What is the output of :scriptnames before you manually load it?
|
|
Feb 13, 2016 at 19:57 | history | asked | goldilocks | CC BY-SA 3.0 |