On 2024-03-06, ShinyNeonCalvin wrote:
> Steps to reproduce
> 
>  1. Make a colorscheme file
>  2. Put it in the same folder as other colorschemes
> 
> Expected behaviour
> 
> At one time, I was able to have vim recognize a color scheme I made by just
> putting this code in the file and putting the file in :/usr/local/share/vim/
> vim90/colors/horror.vim with the other color scheme that come with a vim
> installation:
> 
> let g:colors_name = 'colorscheme-name'
> 
> But now, this doesn't work. I've noticed this didn't work for GUI vim in
> general, but there was a time when putting 'colorscheme ' worked like it did
> the same as it does for the ones that come with the installation when you use
> the standard terminal version of this software.
> 
> Version of Vim
> 
> 9.1

Since you're running 9.1, Vim is going to look for colorschemes in
/usr/local/share/vim/vim91/colors rather than in
/usr/local/share/vim/vim90/colors.

That is one reason you should _never_ add files to or modify files
in the $VIMRUNTIME directory (e.g., /usr/local/share/vim/vim91).
Those files may be overwritten during an upgrade to a newer patch
level or may no longer be in the 'runtimepath' when Vim is upgraded
to a new release.

Any files that you add or modify should be put in your ~/.vim
directory, as Christian suggested, or in $VIM/vimfiles if you want
to make them available to all users.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20240308001552.GC2578%40phoenix.

Raspunde prin e-mail lui