Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a non-diff window in vimdiff

Tags:

vim

vimdiff

Sometimes I'm using vimdiff and want to grab code and drop it in a 3rd window/buffer for later reference. When that window is open, though, just about everything is identified as a diff (because it's purposely different than the other two files). How can I open a window in non-diff mode while using vimdiff?

like image 694
Benj Avatar asked Sep 08 '10 20:09

Benj


1 Answers

You can prevent a window from being diffed with the others by doing :diffoff in that window.

See also :h :diffoff.

like image 186
Brian Carper Avatar answered Sep 23 '22 18:09

Brian Carper