nvim: init.vim: Update textwidth settings globally & gitcommit

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-12-21 20:24:16 +05:30
parent 0b9e52ffe4
commit 4f0b45ac96

View file

@ -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