On Monday, November 11, 2013 9:28:47 AM UTC-6, Reckoner wrote:
> Hi,
>
>
>
> Doing the following:
>
>
>
> :cmap <del> <tab> not working
>
>
>
> Does not trigger completion when I do <del> like it does when I do <tab>.
>
>
>
> What am I missing here?
>
I guess it's explicitly excluded from mappings:
*c_CTRL-I* *c_wildchar* *c_<Tab>*
'wildchar' option
A match is done on the pattern in front of the cursor. The
match (if there are several, the first match) is inserted
in place of the pattern. (Note: does not work inside a
macro, because <Tab> or <Esc> are mostly used as 'wildchar',
and these have a special meaning in some macros.)
But Vim does provide 'wildcharm' to allow you to map something to the wildchar. You could set that to <Tab> and your mapping will work. Alternatively, you could set your 'wildchar' option to <Del> and you don't even need the mapping.
--
--
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/groups/opt_out.
Monday, November 11, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment