The timestamps have very different formats and I can't modify the
applications that create them. Some timestamps include a date (day,
month), some don't. Some timestamps include milliseconds, some don't.
Since I look at the logs offline, I can pre-process them manually, i.e.
I could replace the individual timestamps with a generic format. This
could propably be done in a script as well: Strip any date information
(these a log file excerpts, so dates are the same anyway) and replace
missing milliseconds by a zero value.
That might be a good way to go. Preprocess the files so they have the
same timestamp format, and then, as someone suggested earlier, use Vim's
diff functionaliy, but diff just the timestamps, not the rest of the
lines. Then Vim will keep matching timestamps together as you scroll,
and the scrolling will be fairly natural.
This recent thread dealt with a similar issue, and may be of assistance:
http://groups.google.com/group/vim_use/browse_thread/thread/c46c9e4a9deb3644?
It would be possible to do it using autocommands and Vimscripts, but I
think you would probably find that not to be such a helpful solution,
simply because the script would probably kick in and take action when
you didn't want it to and things like that, and it would be hard to get
it working both correctly and efficiently. And even more work to get it
to work 'naturally'. I'd treat it as a last resort!
Ben.
--
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