Wednesday, June 2, 2010

Re: Progress indicator for :TOhtml command

On Jun 2, 8:43 am, Ben Fritz <fritzophre...@gmail.com> wrote:
> On Jun 2, 3:13 am, "Christian Brabandt" <cbli...@256bit.org> wrote:
>
> > On Wed, June 2, 2010 1:04 am, Benjamin Fritz wrote:
> > > - Added a second progress bar for the attributes processing (previously I
> > > was
> > >   doing this with a %d/%d printf).
> > > I also removed the "redrawstatus" commands. They did not seem to be
> > > necessary,
> > > and only served to increase the processing time. Did you have a particular
> > > reason to include them?
>
> > Yes. I can't see the progressbar otherwise. It is not updating for me. So
> > I suggest, enabling it again.
>
> Interesting. Is this true, even with the progress bar on the top
> window as in the latest version? If it is on the bottom, the screen
> clears again for a redraw immediately after the bottom status line is
> drawn, making it very hard to see the progress bar...which is why I
> put it on the top.
>

This got me thinking...so tried the following:

gvim -N -u NONE -i NONE
filetype indent plugin on
syntax on
:help intro
:source $HOME/vimfiles/syntax/2html.vim

I do not see the progress bars! The status lines never get drawn at
all (and the conversion is lightning fast). It appears I have
something in my Vim setup that slows things down enough, or redraws
the window, or something, that causes the status lines to appear when
normally they would not.

Any ideas? I don't see anything suspicious in my usual Buf/Win Enter/
Leave autocmds:


--- Auto-Commands ---
style_highlight WinEnter
* if !exists('w:created') | call
matchadd('WhitespaceError','\S\@<=\s\+\%#\@<!$') | endif
if &filetype=~'\v<%(c|vim|dosbatch)>' && !
exists('w:tabs_are_bad') | let w:tabs_are_bad =
matchadd('WhitespaceError',"\t") | endif
misc WinEnter
* if !exists('w:created') && &ft!='qf' | setlocal nowrap
| endif
matchparen WinEnter
* call s:Highlight_Matching_Pair()
misc WinEnter
* let w:created=1

--- Auto-Commands ---
insertmode WinLeave
* if exists('w:last_fdm') | let &l:foldmethod=w:last_fdm |
unlet w:last_fdm | endif

--- Auto-Commands ---
filetypedetect BufEnter
*.xpm if getline(1) =~ "XPM2" | setf xpm2 | else | setf
xpm | endif
*.xpm2 setf xpm2
misc BufEnter
* if (&ft=='qf' || &previewwindow || bufname('%') ==#
"__Tag_List__") && !exists('s:scrolloff_sav') | let
s:scrolloff_sav=&scrolloff | set scrolloff=0 | endif
repeatPlugin BufEnter
* if g:repeat_tick == 0|let g:repeat_tick = b:changedtick|
endif
FileExplorer BufEnter
* silent! call s:LocalBrowse(expand("<amatch>"))
.* silent! call s:LocalBrowse(expand("<amatch>"))
BufEnter
*.vba setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff !=
'unix'| setlocal ma ff=unix noma |endif|call
vimball#ShowMesg(0,"Source this file to extract it! (:so %)")
*.vba.gz setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff !=
'unix'| setlocal ma ff=unix noma |endif|call
vimball#ShowMesg(0,"Source this file to extract it! (:so %)")
*.vba.bz2 setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff !=
'unix'| setlocal ma ff=unix noma |endif|call
vimball#ShowMesg(0,"Source this file to extract it! (:so %)")
*.vba.zip setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff !=
'unix'| setlocal ma ff=unix noma |endif|call
vimball#ShowMesg(0,"Source this file to extract it! (:so %)")

--- Auto-Commands ---
misc BufLeave
* if (&ft=='qf' || &previewwindow || bufname('%') ==#
"__Tag_List__") && exists('s:scrolloff_sav') | let
&scrolloff=s:scrolloff_sav | unlet s:scrolloff_sav | endif
repeatPlugin BufLeave
* let g:repeat_tick = (g:repeat_tick == b:changedtick ||
g:repeat_tick == 0) ? 0 : -1

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

Post a Comment