1
0
Fork 0
mirror of synced 2024-11-26 10:45:35 -05:00

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
This commit is contained in:
Yilong Liu 2016-01-26 15:08:11 +08:00
parent 795a8fb80d
commit 8962088de8

View file

@ -54,3 +54,4 @@ endfunction
au FileType coffee call CoffeeScriptFold() au FileType coffee call CoffeeScriptFold()
au FileType gitcommit call setpos('.', [0, 1, 1, 0]) au FileType gitcommit call setpos('.', [0, 1, 1, 0])
au Filetype gitcommit setlocal spell textwidth=72