From 4f0b45ac96952820170ae0e0dcb7049807f2f476 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 21 Dec 2019 20:24:16 +0530 Subject: [PATCH] nvim: init.vim: Update textwidth settings globally & gitcommit Signed-off-by: Sanchayan Maity --- nvim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index e1ef6b2..8415540 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -126,7 +126,7 @@ set ruler " Show the line and column numbers of the cursor. set number " Show the line numbers on the left side. set formatoptions+=o " Continue comment marker in new lines. set formatoptions+=j " Delete comment character when joining commented lines -set textwidth=80 " Hard-wrap long lines as you type them. +set textwidth=78 " Hard-wrap long lines as you type them. set softtabstop=4 " Finetunes the amount of white space to be added. set tabstop=4 " Render TABs using this many spaces. set shiftwidth=4 " Indentation amount for < and > commands. @@ -476,7 +476,7 @@ augroup END augroup spell_check au! - autocmd FileType gitcommit setlocal spell + autocmd FileType gitcommit setlocal spell textwidth=72 autocmd BufRead,BufNewFile *.md,*.txt setlocal spell augroup END