> Am 06.01.2011 18:30, schrieb Dominique Pellé: > > Hi > > > > Vim-7.3.98 allows function completion when using > > expression register "= but it does not work when used > > inside a macro. > > > > Example: define a sample macro with completion: > > > > $ vim -u NONE -N > > > > qqi<CTRL-R>=le<Tab>@")<CR><Esc>q > > > > So far so good. Pressing<Tab> while defining > > the macro completed to =len( > > > > Now try to execute the macro and observe an error: > > > > @q > > > > E121: Undefined variable: le > > > > Completion does not happen when executing the macro. > > I don't think that's expected. Or is there any reason for > > not allowing completion inside macros? > > > > -- Dominique > > Completion can be enabled in macros: > > :h 'wildchar' > :h 'wildcharm'
Yes, 'wildcharm' works, but setting it to <Tab> may have side effects. The question remains whether @q should work just like the characters were typed or like executing a mapping. -- >From "know your smileys": :q vi user saying, "How do I get out of this damn emacs editor?" /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
