Rulers and spellcheck in commits

This commit is contained in:
2020-06-30 02:47:47 +02:00
parent 2f808717ec
commit 2d2ca2dc6a

View File

@@ -97,3 +97,10 @@ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
" Clear all matches
autocmd BufWinLeave * call clearmatches()
" Show ruler at 80 and 100 columns
set colorcolumn=80,100
" Shorter lines in git commits
autocmd filetype gitcommit set colorcolumn=50,72
" Spell checking in git commits
autocmd filetype gitcommit set spell spelllang=en_us