Error when loading zenburn colorscheme
asdil12 opened this issue · comments
Dominik Heidler commented
When starting vim, I see this error:
Error detected while processing /etc/vimrc[14]../usr/share/vim/vim82/colors/zenburn.vim:
line 533:
E697: Missing end of List ']':
line 534:
E10: \ should be followed by /, ? or &
line 535:
E10: \ should be followed by /, ? or &
line 536:
E10: \ should be followed by /, ? or &
line 537:
E10: \ should be followed by /, ? or &
line 538:
E10: \ should be followed by /, ? or &
line 539:
E10: \ should be followed by /, ? or &
line 540:
E10: \ should be followed by /, ? or &
line 541:
E10: \ should be followed by /, ? or &
line 542:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
My /etc/vimrc
:
set bg=dark
set t_Co=256
let g:zenburn_high_Contrast=1
let g:zenburn_old_Visual = 1
colors zenburn
# LANG=c vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12)
Included patches: 1-2411
Compiled by 'http://www.opensuse.org/'
Huge version without GUI. Features included (+) or not (-):
+acl -farsi +mouse_sgr +tag_binary
+arabic +file_in_path -mouse_sysmouse -tag_old_static
+autocmd +find_in_path +mouse_urxvt -tag_any_white
+autochdir +float +mouse_xterm -tcl
-autoservername +folding +multi_byte +termguicolors
-balloon_eval -footer +multi_lang +terminal
+balloon_eval_term +fork() -mzscheme +terminfo
-browse +gettext +netbeans_intg +termresponse
++builtin_terms -hangul_input +num64 +textobjects
+byte_offset +iconv +packages +textprop
+channel +insert_expand +path_extra +timers
+cindent +ipv6 +perl +title
-clientserver +job +persistent_undo -toolbar
-clipboard +jumplist +popupwin +user_commands
+cmdline_compl +keymap +postscript +vartabs
+cmdline_hist +lambda +printer +vertsplit
+cmdline_info +langmap +profile +virtualedit
+comments +libcall -python +visual
+conceal +linebreak +python3/dyn +visualextra
+cryptv +lispindent +quickfix +viminfo
+cscope +listcmds +reltime +vreplace
+cursorbind +localmap +rightleft +wildignore
+cursorshape +lua/dyn +ruby/dyn +wildmenu
+dialog_con +menu +scrollbind +windows
+diff +mksession +signs +writebackup
+digraphs +modify_fname +smartindent -X11
-dnd +mouse -sound -xfontset
-ebcdic -mouseshape +spell -xim
+emacs_tags +mouse_dec +startuptime -xpm
+eval -mouse_gpm +statusline -xsmp
+ex_extra -mouse_jsbterm -sun_workshop -xterm_clipboard
+extra_search +mouse_netterm +syntax -xterm_save
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -Wall -pipe -fno-strict-aliasing -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -flto=auto -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.32.0/x86_64-linux-thread-multi/CORE -flto=auto -L/usr/local/lib -Wl,--as-needed -o vim -lm -lselinux -ltinfo -lacl -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.32.0/x86_64-linux-thread-multi/CORE -L/usr/local/lib64 -fstack-protector-strong -L/usr/lib/perl5/5.32.0/x86_64-linux-thread-multi/CORE -lperl -lm -ldl -lcrypt -lpthread
The relevant code lines seem to be:
531 " Terminal support for Vim 8+
532 if version >= 802
533 let g:terminal_ansi_colors = [
534 \ '#1f1f1f', '#cc9393',
535 \ '#5f7f5f', '#ffd7a7',
536 \ '#8cb0d3', '#8f8f8f',
537 \ '#71d3b4', '#dfe4cf',
538 \ '#6f6f6f', '#ecb3b3',
539 \ '#ffd7a7', '#8cb0d3',
540 \ '#8f8f8f', '#71d3b4',
541 \ '#dfe4cf', '#ffcfaf',
542 \]
543 else
544 if version >= 800
545 hi Terminal ctermbg=232 guibg=#0f0f0f ctermfg=248 guifg=#a8a8a8
546 endif
547 endif
Slinky commented
Hi, can you please try to make a ~/.vimrc
and add set nocompatible
to it?
Edit: or add set nocompatible
to the /etc/vimrc
.
Dominik Heidler commented
It works fine if I set this
Slinky commented
Great! Closing this