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