Enonya / yuyuko.vim

A vim/neovim color scheme
GNU Affero General Public License v3.0
29 stars 0 forks source link

[Bug]: Undefined variable s:t_Co #2

Closed H2Sxxa closed 1 year ago

H2Sxxa commented 1 year ago

错误信息

h2sxxa@LAPTOP-DEV:~/WorkSpace/Python$ vim main.py
Error detected while processing /home/h2sxxa/.vimrc[2]../home/h2sxxa/.vim/colors/yuyuko.vim:
line   62:
E121: Undefined variable: s:t_Co
line  151:
E121: Undefined variable: s:t_Co
Press ENTER or type command to continue

环境

Linux LAPTOP-DEV 5.15.90.4-microsoft-standard-WSL2 # 1 SMP Tue Jul 18 21:28:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

复现步骤

通过wget https://raw.githubusercontent.com/Enonya/yuyuko.vim/master/colors/yuyuko.vim把配色方案放入 ~/.vim/colors/yuyuko.vim

然后编辑~/.vimrc

syntax on
colorscheme yuyuko

打开文件

Enonya commented 1 year ago

gvim or vim?

:version 的信息能看一下吗,我觉得应该是我特判写少了()

H2Sxxa commented 1 year ago
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 22 2023 04:08:04)
Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl               +cryptv            +fork()            +modify_fname      +persistent_undo   -sun_workshop      +viminfo
+arabic            +cscope            +gettext           +mouse             +popupwin          +syntax            +virtualedit
+autocmd           +cursorbind        -hangul_input      -mouseshape        +postscript        +tag_binary        +visual
+autochdir         +cursorshape       +iconv             +mouse_dec         +printer           -tag_old_static    +visualextra
-autoservername    +dialog_con        +insert_expand     +mouse_gpm         +profile           -tag_any_white     +vreplace
-balloon_eval      +diff              +ipv6              -mouse_jsbterm     -python            -tcl               +wildignore
+balloon_eval_term +digraphs          +job               +mouse_netterm     +python3           +termguicolors     +wildmenu
-browse            -dnd               +jumplist          +mouse_sgr         +quickfix          +terminal          +windows
++builtin_terms    -ebcdic            +keymap            -mouse_sysmouse    +reltime           +terminfo          +writebackup
+byte_offset       +emacs_tags        +lambda            +mouse_urxvt       +rightleft         +termresponse      -X11
+channel           +eval              +langmap           +mouse_xterm       -ruby              +textobjects       -xfontset
+cindent           +ex_extra          +libcall           +multi_byte        +scrollbind        +textprop          -xim
-clientserver      +extra_search      +linebreak         +multi_lang        +signs             +timers            -xpm
-clipboard         -farsi             +lispindent        -mzscheme          +smartindent       +title             -xsmp
+cmdline_compl     +file_in_path      +listcmds          +netbeans_intg     +sodium            -toolbar           -xterm_clipboard
+cmdline_hist      +find_in_path      +localmap          +num64             -sound             +user_commands     -xterm_save
+cmdline_info      +float             -lua               +packages          +spell             +vartabs
+comments          +folding           +menu              +path_extra        +startuptime       +vertsplit
+conceal           -footer            +mksession         -perl              +statusline        +vim9script
   system vimrc file: "$VIM/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 -Wdate-time -g -O2 -ffile-prefix-map=/build/vim-lXrh00/vim-8.2.3995=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lselinux -lsodium -lacl -lattr -lgpm -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 -lcrypt -ldl -lm -lm
Enonya commented 1 year ago

你可以把 line 40 的 && 改成 || 试试? 但是如果终端本身不支持 256 色,因为我比较懒还没做适配所以估计寄了(

H2Sxxa commented 1 year ago

你可以把 line 40 的 && 改成 || 试试? 但是如果终端本身不支持 256 色,因为我比较懒还没做适配所以估计寄了(

正常了(

Enonya commented 1 year ago

你可以把 line 40 的 && 改成 || 试试? 但是如果终端本身不支持 256 色,因为我比较懒还没做适配所以估计寄了(

正常了(

Last but not least, 你可以重新 install 一下,我上个月的有些改动忘记 push 了😥

H2Sxxa commented 1 year ago

你可以把 line 40 的 && 改成 || 试试? 但是如果终端本身不支持 256 色,因为我比较懒还没做适配所以估计寄了(

正常了(

Last but not least, 你可以重新 install 一下,我上个月的有些改动忘记 push 了😥

ok