aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2021-12-21 13:33:50 -0600
committerMatt Singleton <matt@xcolour.net>2021-12-21 13:33:50 -0600
commit0115f8f0678150f9f8ec78f46a918fa839606f97 (patch)
treec48030a3a339c2570a8cbd2edc5818c773fae227
parent0a5459308b61569c9f59209839a7b529cfe699c0 (diff)
cleaner highlighting of "bad" characters
-rw-r--r--home/vimrc10
1 files changed, 7 insertions, 3 deletions
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"