On 2010-05-13, Christian Brabandt wrote:
> Hi Gary!
> On Mi, 12 Mai 2010, Gary Johnson wrote:
> > On 2010-05-12, yixiao...@gmail.com
> > > The split will split the file into two windows. How can I compare the
> > > two regions instead of reading it line by line.
> > You can't. Not unless you put the contents of those two windows
> > into two, new buffers and diff the two buffers. But then any
> > changes you make to those buffers are not reflected back to the
> > original file. It would be a nice feature to have, though.
> Try the NrrwRgn Plugin on http://github.com/chrisbra/NrrwRgn
> I have just added an experimental feature, that allows to have a new
> Narrowed Window per file.
> The idea is to create a new Narrow Region for each region and file you
> want to diff. Be sure to set g:nrrw_rgn_sepwin to 1 so the plugin will
> create for each buffer an extra Narrow Window. Then you can diff both
> Narrow Windows and whenever you write the narrowed Windows, the changes
> will be taken back into the original file.
making changes with it, but I like it so far. Thanks.