From: Sergey Matveev Date: Thu, 4 Nov 2021 14:10:15 +0000 (+0300) Subject: Better non-human letters highlighting X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=fdb5f396d6373f6cfb38b91fa8f2e0ec2df519ce;hp=ed08c8441ac6681d733c7455bcca6483f387a439 Better non-human letters highlighting --- diff --git a/vim/.vim/autoload/nonhumanhl.vim b/vim/.vim/autoload/nonhumanhl.vim new file mode 100644 index 0000000..c2ac7fc --- /dev/null +++ b/vim/.vim/autoload/nonhumanhl.vim @@ -0,0 +1,5 @@ +function! nonhumanhl#load() + highlight nonhuman ctermbg=blue ctermfg=red + autocmd BufReadPost * syntax match nonhuman + \ "[^\u0000-\u007Fа-яА-ЯёЁäÄöÖüÜßẞ]" containedin=ALL +endfunction diff --git a/vim/.vim/plugin/nonhumanhl.vim b/vim/.vim/plugin/nonhumanhl.vim new file mode 100644 index 0000000..7d4e88b --- /dev/null +++ b/vim/.vim/plugin/nonhumanhl.vim @@ -0,0 +1,2 @@ +if exists("*nonhumanhl#load") | finish | endif +call nonhumanhl#load()