Hi, I think Vim already has what you want to do. See the following document. :h diffthis
Example: - Start Vim without specifying a file name. $ vim - Edit the buffer appropriately. Here we set numbers on each line. :call setline(1, range(0,9)) - Open new buffer in split vertically :vnew - Edit the buffer appropriately. :call setline(1, range(3,6)) - Highlight difference between two buffers. :windo diffthis -- Best regards, Hirohito Higashi (h_east) -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
