diff --git a/vimrc b/vimrc index c02c60c..ccfe84b 100644 --- a/vimrc +++ b/vimrc @@ -374,6 +374,11 @@ function s:SetVimwikiSettings() "{{{2 map :VimwikiAll2HTML endfunction "}}} +function s:SetGitcommitSettings() "{{{2 + setlocal textwidth=72 + setlocal spell +endfunction +"}}} "remove all trailing whitespace for specified files before write autocmd BufWritePre * :call StripTrailingWhitespaces(0, 'n') @@ -397,6 +402,7 @@ autocmd FileType sql call SetSqlSettings() autocmd FileType markdown call SetMarkdownSettings() autocmd FileType vim call SetVimSettings() autocmd FileType vimwiki call SetVimwikiSettings() +autocmd FileType gitcommit call SetGitcommitSettings() " }}} "TERMINAL: options for terminal emulators {{{