view runtime/syntax/whitespace.vim @ 19789:25836c21ccf9 v8.2.0451

patch 8.2.0451: Win32: double-width character displayed incorrectly Commit: https://github.com/vim/vim/commit/82e743c5b343847d88b958594ad3433213ef9405 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 26 15:39:53 2020 +0100 patch 8.2.0451: Win32: double-width character displayed incorrectly Problem: Win32: double-width character displayed incorrectly. Solution: First move the cursor to the first column. (Nobuhiro Takasaki, closes #5848)
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Mar 2020 15:45:03 +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