From 89f02077f638d73bfe4f6bdee5d19488fb6f2b95 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Fri, 7 Apr 2017 12:08:39 -0400 Subject: [PATCH] Auto-indent git log messagse after 72 chars --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index cbb2db4..455f4ee 100644 --- a/vimrc +++ b/vimrc @@ -276,6 +276,8 @@ augroup vimrcEx " Clear all autocmds in the group autocmd! autocmd FileType text setlocal textwidth=78 + autocmd FileType gitcommit setlocal colorcolumn=72 + " Jump to last cursor position unless it's invalid or in an event handler autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif