Skip to main content
3 votes

How do I cleanly set highlight colors based on the number of terminal colors?

Some cosmetic improvements are easily made ... Use :execute with a ternary execute 'highlight Comment ctermfg=' .. (&t_Co > 8 ? 'DarkGrey' : 'Grey') This is only one line with the color names ...
Friedrich's user avatar
  • 2,269
2 votes

Neovim displays with different colors, compared to Vim. Why?

New default color scheme. It has different (I'd argue, better) definitions and links of built-in groups. Adding colorscheme vim or source $VIMRUNTIME/colors/vim.lua restores previous defaults. Option '...
Lucian Chauvin's user avatar
2 votes

Neovim 0.10 syntax highlight is completely broken

Neovim 0.10 has introduced a new default colorscheme. If you want to get back your old colors you have to add to your init.vim the following line: colorscheme vim set notermguicolors There are more ...
Vivian De Smedt's user avatar
1 vote

How do I syntax highlight this comment as if it were Python?

" after/syntax/sage.vim runtime! syntax/python.vim unlet b:current_syntax syntax include @Python syntax/python.vim syn region sageDoctestValue contained \ start=/^ *\(sage\|\.\.\.\.\): /...
Gareth Ma's user avatar
  • 121
1 vote

Vim not setting t_Co after iTerm2 update

This is an attempt to help you solve your problem, not an attempt to solve it. I don't think this place is the right place for this. So… I use with xterm-256color as $TERM, where Vim ...
romainl's user avatar
  • 41.2k

Only top scored, non community-wiki answers of a minimum length are eligible