Most of the files that I edit in VIM have a carriage return, so I often see every line with the ^ M character at the end. The only thing I used was to replace them with a type command +e ff=dos, but when I commit with git, it thinks I changed the whole file. So, I'm just wondering if there is a way to keep everyone here happy, is it changing the VIM parameter, changing the editing method, or changing the git configuration?
source
share