0

I was searching for a guide on how to write a color scheme, when I found this question. So I created a colorscheme for vim using Vivify, but when I try to use it an error occurs on the following line:

hi cterm=.((s:fontface==plain) ? none : bold) guifg=#efface guibg=#efface guisp=#efface gui=NONE ctermfg=230 ctermbg=230 cterm=NONE

and it is about a missing equal sign.

I add a link to the .vim file as suggested by @Carolyn C.

Community
  • 1
  • 1
Enlico
  • 23,259
  • 6
  • 48
  • 102

1 Answers1

0

It seems that hi is looking for a type of text to apply the colors to, as well as having trouble with the ternary operator. In addition,s:fontface seems to be an undefined variable. You could try try changing it to either cterm=none or cterm=bold.

could you link to the full file so I could see context for having a hi without a group name?

Carolyn C.
  • 41
  • 3
  • I added the link to the file. It is too be big, so I cannot add it to the question. But, if you find a soution to the problem, you can modify my question by adding only the part to modify. – Enlico Jul 06 '16 at 06:32
  • Well, I can't for the life of me figure out what that line is supposed to do, I would comment it out, then load the colors and use `:so $VIMRUNTIME/syntax/hitest.vim` to see if anything is glaringly missing – Carolyn C. Jul 06 '16 at 18:19