From 7f00ef619d089919ee1ede4cb0c613c7715c1818 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 12 Feb 2019 15:36:29 +0100 Subject: [PATCH] Added handle for gitcommit filetype --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 {{{