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
Post a Comment