68214Re: command line mappings in wildmenu
- Feb 13, 2013Hi clime!
On Mi, 13 Feb 2013, clime wrote:
> With respect to this thread on so:
> It seems like command-line mappings aren't interpreted in wildmenu
> mode, and instead exit it and insert the 'wildchar' literally.
> Would it be possible to interpret these mappings and potentially add
> wildmenuvisible() - a function analog to the pumvisible()?
Looks like a bug to me. However, I think, if you set wildcharm=<Tab> you
can make your mapping work:
:cnoremap <C-j> <DOWN><Tab>
I agree, this is not really useful, without a wildmodevisual() function,
so you could do:
:cnoremap <expr> <C-j> wildmodevisible() ? "\<Down>\<Tab>" : "\<c-j>"
Attached patch enables this. Probably needs a test, but not sure how.
Eine dumme, einfältige Frau ist ein Segen des Himmels.
-- François Marie Voltaire
You received this message from the "vim_dev" 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
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>