[vim/vim] Vim won't recognize custom colorschemes (Issue #14151)

17 views
Skip to first unread message

ShinyNeonCalvin

unread,
Mar 6, 2024, 3:56:52 PM3/6/24
to vim/vim, Subscribed

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

Environment

Ubuntu Studio
Konsole

Logs and stack traces

Error detected while processing /home/<username>/.vimrc:
line  136:
E185: Cannot find color scheme '<name>'
Press ENTER or type command to continue


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14151@github.com>

Christian Brabandt

unread,
Mar 6, 2024, 4:50:11 PM3/6/24
to vim/vim, Subscribed

It seems /usr/local/share/vim/vim90/colors/horror.vim is not in your runtime path. Place it instead into ~/.vim/colors/ and it should work.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14151/1981863442@github.com>

ShinyNeonCalvin

unread,
Mar 7, 2024, 6:47:41 PM3/7/24
to vim/vim, Subscribed

It seems /usr/local/share/vim/vim90/colors/horror.vim is not in your runtime path. Place it instead into ~/.vim/colors/ and it should work.

yeah that worked, case closed and thank you sir


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14151/1984793214@github.com>

Gary Johnson

unread,
Mar 7, 2024, 7:16:11 PM3/7/24
to reply+ACY5DGFQ3DQYQVJM4U...@reply.github.com, vim...@googlegroups.com
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

vim-dev ML

unread,
Mar 7, 2024, 7:16:43 PM3/7/24
to vim/vim, vim-dev ML, Your activity

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


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14151/1984824001@github.com>

K.Takata

unread,
Mar 7, 2024, 7:51:43 PM3/7/24
to vim/vim, vim-dev ML, Comment

Closed #14151 as not planned.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/issue/14151/issue_event/12049815846@github.com>

Reply all
Reply to author
Forward
0 new messages