Gerald Lai wrote:
Hi all,

[On Windows Vim 7.0, binary at ftp://ftp.vim.org/pub/vim/pc/gvim70.exe]
I'm having trouble getting the example in

:help complete()

to work. When I hit <F5> in Insert mode, I get this:

Error detected while processing function ListMonths:
line 1:
E523: Not allowed here

I have :set nosecure.
Having this instead fixes the problem:

inoremap <F5> <C-r>=ListMonths()<CR>

Looks like a bug. I wasn't sure if this has been fixed.
--
Gerald


Looks to me like a documentation bug. I believe you got it right, and the helpfile got it wrong.


Best regards,
Tony.

Reply via email to