Tent I’m trying to create my own color scheme for vim, I even managed to define some things like the background color, status bar color, Pmenu, Strings…
I tried creating a file called I tried creating a file called .vim/syntax/python3.vim with the following code:
autocmd BufRead,BufNewFile *.foo set filetype=foo syn keyword pythonStatement False None True hi pythonStatement guifg=#D84256
I also tried using the preferred groups just to see if it would work, then I tried using “highlight” within the color scheme and it still didn’t work. Syntax highlighting only worked if I typed the command in the command bar, but not in .vim…
I just wanted to create my own syntax highlighting for python and intended to create it for other languages as well, such asI just wanted to create my own syntax highlighting for python and I intended to create it for other languages as well, such as html, css, javascript, and a few others.
Gladed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1