TIL: Stripping newline at the end of a file in Vim
When editing rails credentials files, my diff tool appends a newline at the end of the file.
To fix this, open the file in vim
, run
:set noendofline binary
:wq
Check that no newline is present with git diff