From 2d04aa780af62c751e65179d4a581e4390a2a9de Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 28 Oct 2020 11:02:33 +0100 Subject: [PATCH] [UPDATE][VIM] Use 80 column 'textwidth' And define the `colorcolumn` variable using `textwidth`. --- vim/.vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 3381eab..ebe775c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -170,8 +170,10 @@ set visualbell " Disable bell completely by resetting the visual bell's escape sequence set t_vb= -" Color the 80th column -set colorcolumn=80 +" Use 80 columns +set textwidth=80 +" Highlight when after textwidth +set colorcolumn=+1 " Show whitespace set list " Show a tab as an arrow, trailing spaces as ยค, non-breaking spaces as dots