On Sat, 24 Jun 2006, Hari Krishna Dara wrote:

[snip]
I did try this to store the complete func and restore it after
<c-x><c-u>
        fun DoCompleteRegex()
          let cf = &completefunc
          set completefunc=CompleteWithSimpleRegex
          normal <c-x><c-u>
          set completefunc=cf
          return ""
        endfun
It didn't work.

How would you do this?

Marc

I don't know why the normal command wouldn't work in your case, but you
could try to set the completion results immediately by calling the
complete() function, instead of fiddling with 'completefunc'.

Try

  exe "normal \<C-x>\<C-u>"

instead.

--
Gerald

Reply via email to