Hi Gary! On Mi, 12 Mai 2010, Gary Johnson wrote:
> On 2010-05-12, [email protected] wrote: > > 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. regards, Christian -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
