From 0115f8f0678150f9f8ec78f46a918fa839606f97 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Tue, 21 Dec 2021 13:33:50 -0600 Subject: cleaner highlighting of "bad" characters --- home/vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'home') diff --git a/home/vimrc b/home/vimrc index 0b01776..c6a440e 100644 --- a/home/vimrc +++ b/home/vimrc @@ -148,13 +148,17 @@ syntax enable highlight clear SignColumn hi! link SignColumn Background -" Highlight non-ascii characters -" Run this late to override theme +" Highlight non-ascii characters as the theme highlights errors +hi clear nonascii +hi link nonascii Error if has("autocmd") - highlight nonascii guibg=Red ctermbg=1 term=standout au BufReadPost * syntax match nonascii /[^\d0-\d127]/ endif +" highlight trailing space and tab as the theme highlights errors +hi clear SpecialKey +hi link SpecialKey Error + let g:airline_powerline_fonts = 1 let g:airline_left_sep="\uE0B4" let g:airline_right_sep = "\uE0B6" -- cgit v1.2.3