On Apr 7, 1:31 pm, viki <[email protected]> wrote: > I have file containing >20 pairs of pathnames, one pair per line: > > /path1/to/file1.OLD /path2/to.file1.NEW > etc. > > I need to open vimdiff on multiple pairs of files > such that I can switch forward to next pair, backward to > previous pair, each time seeing vimdiff of that pair. > How can I do it ? Is there a plugin that does such thing ? >
This is trivially accomplished using Vim's tab pages. Simply do this, for each file pair: tabe /path/to/file1 diffsp /path/to/file2 Now you have diffs on each file pair open in separate tab pages. Switch between them using the usual tab navigation commands: gt = next tab gT = previous tab [count]gt = go to tab number given by [count]. The third command given above is more useful if you display the tab number in the tabline. See the following tips on the wiki: http://vim.wikia.com/wiki/Introduction_to_using_tab_pages http://vim.wikia.com/wiki/Quick_tips_for_using_tab_pages http://vim.wikia.com/wiki/Show_tab_number_in_your_tab_line -- 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 To unsubscribe, reply using "remove me" as the subject.
