From 31ef375a29f0fc71c50341e825403cbebf6e3648 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 19 Mar 2021 13:29:45 +0000 Subject: [PATCH] Make default tw wider, and highlight three main wrapping columns --- vimrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index d5902ec..439cb51 100644 --- a/vimrc +++ b/vimrc @@ -41,12 +41,18 @@ nnoremap nnoremap gB :bprevious nnoremap gb :bnext +" Text wrapping and margin settings. Setting tw=72 is ideal for emails or +" anything that will be read in a Terminal, while tw=100 is better for code or +" for general text that will be viewed in a GUI. +set colorcolumn=73,81,101 +set textwidth=100 " Suggestions: 72, 80, 100 + +" All other settings. set autoindent set autoread set background=dark set backspace=indent,eol,start set cmdheight=1 -set colorcolumn=101 set directory=$TEMP//,/tmp//,. set display+=lastline set encoding=utf-8 @@ -76,7 +82,6 @@ set smartcase set smarttab set spl=en_gb nospell set tabstop=8 -set textwidth=72 set ttimeout set ttimeoutlen=100 set ttyfast