Thursday, December 8, 2016

Remapping CTRL-L, CTRL-K etc… as used in line/dictionary completion

Hello,
is it possible to remap <C-L>/<C-K>/... so that my mapping is invoked
when <C-L>/<C-K>/... is pressed during line/dictionary completion?

To see what I mean, define

imap <expr> <c-l> pumvisible()?'PUM':'BAM'

Then, using this text:

now and here
nowhere
no

and with the cursor after the last character in the last line, type
<c-x><c-l>, then <c-l> again. Instead of inserting PUM, Vim highlights
the last menu entry, clearly ignoring the fact that <c-l> is mapped. Is
that by design?

Thanks,
Life.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: