view runtime/syntax/whitespace.vim @ 24018:a934526dacd2 v8.2.2551

patch 8.2.2551: MS-Windows: colors test file is not installed Commit: https://github.com/vim/vim/commit/d0bce504ec52def729fffa35c8896979af348d32 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 26 20:25:35 2021 +0100 patch 8.2.2551: MS-Windows: colors test file is not installed Problem: MS-Windows: colors test file is not installed. Solution: Also copy runtime/colors/tools. (Ken Takata, closes https://github.com/vim/vim/issues/7902)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Feb 2021 20:30: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