view runtime/syntax/whitespace.vim @ 33744:4006051bf85d v9.0.2098

patch 9.0.2098: No filetype support for xcompose files Commit: https://github.com/vim/vim/commit/4f9074b96cc7efb1c829ca74902a851551dcf4e8 Author: ObserverOfTime <chronobserver@disroot.org> Date: Sat Nov 11 09:12:27 2023 +0100 patch 9.0.2098: No filetype support for xcompose files Problem: No filetype support for xcompose files Solution: Add filetype detection closes: #13508 Signed-off-by: ObserverOfTime <chronobserver@disroot.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 11 Nov 2023 09:15:04 +0100
parents 3fc0f57ecb91
children
line wrap: on
line source

" Simplistic way to make spaces and Tabs visible

" This can be added to an already active syntax.

syn match Space " "
syn match Tab "\t"
if &background == "dark"
  hi def Space ctermbg=darkred guibg=#500000
  hi def Tab ctermbg=darkgreen guibg=#003000
else
  hi def Space ctermbg=lightred guibg=#ffd0d0
  hi def Tab ctermbg=lightgreen guibg=#d0ffd0
endif