From 1e15fb7e6565baed1a799ec2ad439aaad3e6f7fc Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 16 Apr 2016 12:00:26 -0400 Subject: highlight non-ascii characters in vim --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 5bf5709..952c19e 100644 --- a/vimrc +++ b/vimrc @@ -165,6 +165,13 @@ set hlsearch highlight clear SignColumn hi! link SignColumn Background +" Highlight non-ascii characters +" Run this late to override solarized +if has("autocmd") + highlight nonascii guibg=Red ctermbg=1 term=standout + au BufReadPost * syntax match nonascii /[^\d0-\d127]/ +endif + let g:airline_left_sep='' let g:airline_left_alt_sep='|' let g:airline_right_sep='' -- cgit v1.2.3