From 359a41642fe1d2c9bf8b3f0fab6ca2aad10acebe Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 9 Aug 2022 17:41:25 +0200 Subject: [PATCH] vimrc: highlight column 80 (long lines) --- .vim/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index abcba4c..88d14c9 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -577,6 +577,10 @@ au BufNewFile,BufRead *.cshtml \ setlocal ft=csh tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab autoindent \ textwidth=79 fileformat=unix conceallevel=0 +augroup line_too_long + autocmd! + autocmd winEnter,BufEnter * call clearmatches() | call matchadd('ColorColumn', '\%>80v', 100) +augroup END augroup async_plug_load autocmd!