Vim startup errors on Calculinux, E254 color and E216 filetypedetect issues

Hello,

I’m running Vim on latest Calculinux version as root (/home/root) and getting persistent startup errors despite tweaking my .vimrc. Vim version appears to be 9.1 based on paths (/usr/share/vim/vim91). Using packages from Index of /ipk/walnascar/continuous/cortexa7t2hf-neon-vfpv4/. Here’s the exact error output:

failed to load colors/lists/defaults.vim 
Error detected while processing /home/root/.vimrc[2]../usr/share/vim/vim91/syntax/syntax.vim[20]../user/share/vim/vim91/syntax/synload.vim[22]../usr/share/vim/vim91/syntax/syncolor.vim: 
line 37: 
E254: Cannot allocate color Orange 
Error detected while processing /home/root/.vimrc[2]../usr/share/vim/vim91/syntax/syntax.vim:: 
line 44: 
E216: No such group or event: filetypedetect BufRead

My current minimal .vimrc:

set nocompatible
set t_Co=8
filetype plugin indent on
set number
syntax enable (Or syntax on)

Even with export TERM=vt100 and vim -u NONE working clean, full startup fails on syntax loading. termguicolors and 256 colors also crash with E254.

What I’ve tried:

  • Reordered filetype/syntax enables
  • set runtimepath^=/usr/share/vim/vim91
  • t_Co=8/16, no truecolor
  • Noticed path glitch: “../user/” vs “/usr/” in errors

Any Calculinux users fixed Vim syntax highlighting? Thanks!

why are you running vim as root

1 Like

Have you tried to start it without a .vimrc in place?

Yes, it works without my .vimrc setup. It even works with my .vimrc setup if I remove the “syntax on” part.

How can I run Vim not as root on calculinux?

add a none-root user and then login with that user

BTW, on Linux,personal config files for root user storage in “/root/” directory,not “/home/root/”

I ran vim as my new user, and still the same errors can up with syntax on, after re-making my .vimrc file.

Do you set “syntax enable“ or “syntax on“?

And did you try both variants?

I tried both varients.

I actually overlooked the fact that you posted the error output above. There are some very specific error messages there. And they contain strange paths. As beapig already wrote, the root specific user files are located under /root and not under /home/root. You yourself have already noted that /user/share/vim/vim91/syntax/synload.vim contains /user/ instead of /usr/. This is where you should start looking.

1 Like