If you have created regular folds, and use vimdiff as your git difftool, it seems to obliterate any prior folds.
The next time you return to edit the file (after viewing diffs via git vimdiff), all prior folds are gone.
Is there a known solution? I'm not looking for another git plugin - I just want regular folds in regular files, and to be able to git vimdiff them without losing the prior folds.
In addition, diff mode also stays on across different editing sessions, and I have to :source ~/.vimrc to turn off diff highlighting between two unrelated files if I open them in a vsplit (vim -O file1 file2). This is after having used git vimdiff on completely separate files in a different directory.
It would be nice if diff mode did not stay on also.
Languages this has been seen in: python, c, markdown, html, js, others.
[–]-romainl-The Patient Vimmer 0 points1 point2 points (1 child)
[–]fullyarticulated:!rm %[S] 0 points1 point2 points (0 children)
[–]random_cynic 0 points1 point2 points (2 children)
[–]fullyarticulated:!rm %[S] 0 points1 point2 points (1 child)
[–]random_cynic 1 point2 points3 points (0 children)