From 8baab3c8d7a6f22888bd581cd5c6098fd2e4b5a8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:44:24 +0200 Subject: Adding upstream version 2:8.1.0875. Signed-off-by: Daniel Baumann --- runtime/syntax/whitespace.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 runtime/syntax/whitespace.vim (limited to 'runtime/syntax/whitespace.vim') diff --git a/runtime/syntax/whitespace.vim b/runtime/syntax/whitespace.vim new file mode 100644 index 0000000..4d2e32e --- /dev/null +++ b/runtime/syntax/whitespace.vim @@ -0,0 +1,13 @@ +" 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 -- cgit v1.2.3