New answers tagged syntax-highlighting
1
vote
Accepted
I've switched to nvim and init.lua, which pulls in onedark colorscheme. How can I add a custom rule?
If the syntax file already matches the /**/ comment in the string, you only need to add a highlight for it.
Check the syntax group (e.g., using zS from scriptease or synstax#UnderCursor() from ...
1
vote
MacOS - Vim overriding my highlight config in ~/.vimrc
The proper way to define your own colorscheme would be to actually define your colorscheme, for real, in its own file:
" in ~/.vim/colors/mycolors.vim
set background=dark
hi clear
let g:...
Top 50 recent answers are included
Related Tags
syntax-highlighting × 732vimrc × 66
highlight × 60
colorscheme × 56
vimscript × 48
regular-expression × 42
neovim × 41
filetype × 25
filetype-tex × 23
filetype-markdown × 23
folding × 20
conceal × 20
color × 18
gvim × 16
terminal × 15
spell-checking × 15
filetype-python × 14
filetype-c × 13
filetype-html × 9
filetype-javascript × 9
indentation × 8
microsoft-windows × 8
plugin-system × 8
bash × 8
filetype-c++ × 8