I've started to use the command DiffOrig proposed in the help (see :h
:DiffOrig). When I use it and then return to normal mode, the left
margin is not correctly restored, some empty space being left in front
of the text (or in front of line numbers if displayed).
Here are some steps:
1. Open an existing file
2. Add a space somewhere
3. :DiffOrig
4. :only
After the last step, the margin is not correctly restored (see the
attached two screenshots).
This is with Vim 7.2.302 on Ubuntu 9.10 (normal features, no GUI).
I believe, that is the foldcolumn. You should issue :diffoff when closing
your diff. See :h foldcolumn
regards,
Christian
--
:wq
Indeed, thanks!
Is there a way to go back to "normal mode" (i.e., closing the diff
window and issuing :diffoff) or should I just create a mapping for
doing that?
You will have to create a mapping for this.
--
Cheers,
Lech Lorens