commit 0a0cc27053955e41033e124de72c9630ce262a5a
parent 1512acd0a7f5ad72482ae67c7bf63532a02dc72c
Author: gearsix <gearsix@tuta.io>
Date: Mon, 5 Oct 2020 16:41:08 +0100
added colour highlight when text col > 80
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/nvimrc b/src/nvimrc
@@ -51,6 +51,11 @@
set laststatus=2 "always show the last status line
"set statusline=\ %F%m%r%h\ %w\ \ \ \ \ \ \ \ \ \ \ \ Line:\ %l
set scrolloff=1 "always show at least one line above/below the cursor
+ " highlight text over colwidth
+ augroup vimrc_autocmds
+ autocmd BufEnter * highlight OverLength ctermbg=darkgrey guibg=#592929
+ autocmd BufEnter * match OverLength /\%74v.*/
+ augroup END
"5. SEARCH
set incsearch "search as characters are entered