Lev Lvovsky wrote:
I have two files which I'd like to compare via diffsplit in an existing
vim session - trying to do so by issuing ':diffsplit <filename>' when
the other one is already in the window gets me the error:
E97: Cannot create diffs
I can properly open the diff in a separate instance via 'vimdiff', as
well as ':diffsplit' - is there something wrong with my existing session?
thanks!
-lev
I. To diff one file already being edited with another file not being edited:
1. make the file already being edited current (let's say foo.txt)
2. :vertical diffsplit bar.txt
II. To diff two files already being edited:
1. make one file current
2. :diffthis
3. make the other file current
4. :diffthis
5. (Optional) Rearrange the windows (using ^W commands) to place them
side-by-side.
III. To diff (in an existing Vim, but in new windows) two files not being edited
1. :bot new foo.txt
2. :vert diffsplit bar.txt
Best regards,
Tony.
--
A KNIGHT rides into shot and hacks him to the ground. He rides off.
We stay for a moment on the glade. A MIDDLE-AGED LADY in a C. & A.
twin-set emerges from the trees and looks in horror at the body of her
HUSBAND.
MRS HISTORIAN: FRANK!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD