]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/autoload/nonhumanhl.vim
Better non-human letters highlighting
[dotfiles.git] / vim / .vim / autoload / nonhumanhl.vim
diff --git a/vim/.vim/autoload/nonhumanhl.vim b/vim/.vim/autoload/nonhumanhl.vim
new file mode 100644 (file)
index 0000000..c2ac7fc
--- /dev/null
@@ -0,0 +1,5 @@
+function! nonhumanhl#load()
+    highlight nonhuman ctermbg=blue ctermfg=red
+    autocmd BufReadPost * syntax match nonhuman
+        \ "[^\u0000-\u007Fа-яА-ЯёЁäÄöÖüÜßẞ]" containedin=ALL
+endfunction