简体   繁体   中英

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?

git commit message plugin is ~/.vim/ftplugin/gitcommit.vim . Set this:

setlocal fileformat=dos

See http://vimdoc.sourceforge.net/htmldoc/options.html#%27fileformat%27

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM