Thursday, July 1, 2010

Re: vimdiff-like highlighting within the same file?

I've also wanted to do diffs within the same file, and now I'm thinking that this is really just a special case of something more general that may have other uses (although I haven't thought of them yet).  The concept here is "virtual buffers" which would represent a portion of a file, or more generally, a number of portions of a number of files concatenated together.  Once you could do something like

:virtbuf bufname filename startline endline

to create a virtual buffer, diffing it with another real or virtual buffer would be easy.

I'm wondering if this isn't already possible with some of the vimscript commands.  If not, I may look into how to do it in the C code.

Ephraim

--
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

No comments: