Search code examples
gitvimvim-fugitive

vim-fugitive doesn't show whitespace changes


I'm using vim-fugitive's :Gdiff for commits, but it doesn't show whitespace changes, so I can't commit, for example, indentation changes. I don't have any global git configs like core.whitespace, and if I run git diff in the shell I see whitespace changes.

Any ideas how to make fugitive's diff mode ws-sensitive?

Thanks.


Solution

  • As @Atri guessed, the problem was with my .vimrc. I had this line:

    set diffopt=filler,iwhite
    

    iwhite part is causing diff mode to ignore whitespace changes. Removing that fixes this problem.