I am currently trying to edit a git hunk file (a diff: .git/addp-hunk-edit.diff
), and to say to git that a line containing whitespace is unchanged it needs to have (a line with a single space) as its first character. The problem is that Vim removes all whitespace in otherwise empty lines as soon as I save the file!
This only happens on this file type, not for for instance .vimrc
. How can I manually disable this behavior, and even better, permanently disable it for diff files?
- MacVim 7.4.77, installed via Homebrew.
- My .vimrc