* A.J.Mechelynck <[EMAIL PROTECTED]> [060723 20:48]: > Marvin Renich wrote: > >Can someone point me to a help topic that explains this (or give an > >explanation)? Is there some way to keep the output of echo (without > >changing the user's commandheight)? I've tried exec "silent! b" ^^^^^^ > >curbuf, and using echomsg instead of echo, but no combination of those > >worked.
> >function! TestBuf() > > let curbuf = bufnr("%") > > exec "b" g:testbuf > > let found = search('t.st') > > exec "b" curbuf > > echomsg 'Done with TestBuf (found = '.found.')' > >endfunction > >Thanks much...Marvin > > see ":help :silent" > > > HTH, > Tony. I tried silent and silent!. I used it both places where I change buffers with exec "b" ... e.g. exec "silent! b" ... Did I miss something or put it in the wrong place? Note that if you do the steps in my original message, then look at the output of :messages, you will see that the output of the first exec "b" ... does not appear, and the output of the second appears _after_ the output of echomsg, rather than before. Changing exec "b" to exec "silent! b" has no effect. I am using a self-compiled vim 7.0 that is slightly out-of-date (it only has patches through 17). If you can't reproduce my problem with the steps I outlined in my original message, I'll update my source, recompile, and retry. :version VIM - Vi IMproved 7.0 (2006 May 7, compiled May 31 2006 17:11:36) Included patches: 1-17 Thanks...Marvin P.S. I am subscribed; no need to CC me.