aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2016-04-16 12:00:26 -0400
committerMatt Singleton <matt@xcolour.net>2016-04-16 12:00:26 -0400
commit1e15fb7e6565baed1a799ec2ad439aaad3e6f7fc (patch)
tree841fb34cce38c34431e038ddc56fa9d450b33bf3
parenta9b7cfd4fb03253a628cd68e356706cd557f300e (diff)
highlight non-ascii characters in vim
-rw-r--r--vimrc7
1 files changed, 7 insertions, 0 deletions
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=''