From 7bb1adc3973f6bca6fa55cf79aa6434b0f926c48 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 15 Dec 2020 17:36:31 +0100 Subject: [PATCH] vim: make colorcolumn depend on textwidth --- roles/vim/files/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/vim/files/vimrc b/roles/vim/files/vimrc index 1b695e4..b9d46a2 100644 --- a/roles/vim/files/vimrc +++ b/roles/vim/files/vimrc @@ -13,7 +13,7 @@ let &background = $BACKGROUND ==# 'light' ? 'light' : 'dark' set backspace=indent,eol,start " sane backspace behavior set nobackup " don't keep backup file after overwriting a file set clipboard=unnamed " synchronize with system clipboard -set colorcolumn=80 " highlight column 80 +set colorcolumn=+1 " highlight column after 'textwidth' set cursorline " highlight the line of the cursor set diffopt=filler,vertical " make side-by-side diffs better set encoding=utf8 " use UTF-8 by default