Reputation: 376
I work in windows and I use vim like default editor for commit. I would like configure vim to save the commit with Windows file format (CRLF)
How I can do? Where is the vim configurations for git?
Upvotes: 1
Views: 333
Reputation: 94511
git commit message plugin is ~/.vim/ftplugin/gitcommit.vim
. Set this:
setlocal fileformat=dos
See http://vimdoc.sourceforge.net/htmldoc/options.html#%27fileformat%27
Upvotes: 4