windows - ^M of CRLF shows up in git, but not vim -


to django web project, i'm adding html files template. in vim, these html files don't show wrong, i.e. no cr characters visible. when git diff, show up. since they're not visible in vim, i'm not able :%s/^m//g or :%s/\r//g, both of them show pattern not found error. they're still visible in git diff. don't want them seen in git. git config --global core.autocrlf true doesn't either

i got answer after little bit of googling after seeing @torek's answer.

i had :set fileformat=unix in vim!


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -