From 65f0923823b3498d6e07d7bfcf8ad0382270007b Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 29 May 2020 07:36:04 +0200 Subject: [PATCH] hilight overlength function added --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vimrc b/.vimrc index c420ba3..01e1633 100644 --- a/.vimrc +++ b/.vimrc @@ -16,6 +16,12 @@ set expandtab " Set to show invisibles (tabs & trailing spaces) & their highlight color set list listchars=tab:»\ ,trail:· +function! Highlight() + highlight OverLength ctermbg=red ctermfg=white guibg=#592929 + match OverLength /\%81v.\+/ +endfunction +nnoremap _h :call Highlight() + """""""""""""""""""" " GnuPG Extensions "