From 8962088de86e9e3c50e0f18d5f34d7682d1e0ce2 Mon Sep 17 00:00:00 2001 From: Yilong Liu Date: Tue, 26 Jan 2016 15:08:11 +0800 Subject: [PATCH] update : add gitcommit filetype to 50/72 formats Add to `au Filetype gitcommit setlocal spell textwidth=72` to~/.vimrc to add spell checking and automatic wrapping at the recommended 72 columns to commit messages.It's helpful to obey the 50/72 formats - https://github.com/thoughtbot/dotfiles/blob/master/gitmessage --- vimrcs/filetypes.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrcs/filetypes.vim b/vimrcs/filetypes.vim index f6a58f6b..8dcdcd11 100644 --- a/vimrcs/filetypes.vim +++ b/vimrcs/filetypes.vim @@ -54,3 +54,4 @@ endfunction au FileType coffee call CoffeeScriptFold() au FileType gitcommit call setpos('.', [0, 1, 1, 0]) +au Filetype gitcommit setlocal spell textwidth=72