Marco Andreolli
Marco Andreolli

Reputation: 376

Git vim editor config

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

Answers (1)

phd
phd

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

Related Questions