From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. 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