Am 31.05.2010 22:47, schrieb Benjamin Fritz:
I love using the :TOhtml command, and I keep finding more ways to use
it. Recently, I had a large-ish log file (several thousand lines), in
which I wanted to call attention to a few groups of lines, but I
figured people may want the context as well. So, I set up some folds
and some quick syntax highlighting, and went to go create an html copy
of it using the "dynamic folding" feature of the command.

Unfortunately, I discovered that processing such a large file, even
with no syntax highlighting, takes a *very* long time. I probably
should have selected just a smaller area of interest but...

I waited quite a while, and finally hit CTRL-C to stop it. Luckily it
hadn't actually gotten that far (probably about 30%), but I was
worried that it may have been almost done, and all I needed to do was
wait a bit longer.

So anyway, for future use, I wanted to be able to see quickly whether
the conversion was worth waiting for. Therefore, I have written a
patch to add a progress indicator.

I'd suggest to try one of the existing progress bars (sorry,  didn't try
them myself yet):

http://github.com/tomtom/vimtlib/blob/master/autoload/tlib/progressbar.vim
http://www.vim.org/scripts/script.php?script_id=2006

--
Andy

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

Raspunde prin e-mail lui