Eric Leenman wrote:
Hi,

Following your comments, I've converted my file to a scheme and placed it in
C:\Program Files\Vim\vimfiles\colors
For testing I also placed a bw.vim and a print_bw.vim in it.

The problem now is that it doesn't get loaded.
When I type :colorscheme eric it says E185: Can not find colorscheme eric

":colorscheme eric" loads (on Windows, with the default 'runtimepath') the first one found of the following (and gives an error if none is found):

1. $HOME/vimfiles/colors/eric.vim
2. $VIM/vimfiles/colors/eric.vim
3. $VIMRUNTIME/colors/eric.vim
4. $VIM/vimfiles/after/colors/eric.vim
5. $HOME/vimfiles/after/colors/eric.vim

The script should set g:colors_name to "eric".

1 and 5 are for "private" single-user files, 2 and 4 for "system-wide" files (which all users will see identically on multiuser system), 3 for whatever is distributed together with Vim (and users shouldn't meddle with it, as any upgrade can silently erase any changes you make there).

When I type echo g:colors_name it says undefined variable
When I type :colorscheme print_bw it switches to this scheme
When I type echo g:colors_name it says print_bw

Copying the print_bw file to print_bw2.vim and changing only the line
let g:colors_name = "blabla"
gives also the same errors with my ëric"scheme

Why

Rgds,
Eric

The ":scriptnames" command will tell you exactly which scripts were sourced, and in which sequence.

Best regards,
Tony.
--
Peanut Blossoms

4 cups sugar           16 tbsp. milk
4 cups brown sugar     4 tsp. vanilla
4 cups shortening      14 cups flour
8 eggs                 4 tsp. soda
4 cups peanut butter   4 tsp. salt

Shape dough into balls.  Roll in sugar and bake on ungreased cookie
sheet at 375 F. for 10-12 minutes.  Immediately top each cookie with a
Hershey's kiss or star pressing down firmly to crack cookie.  Makes a
hell of a lot.

Reply via email to