Hi Everyone,

I would like to remap the <Tab> key so that vim will automatically pick the
current selected item from the completion popup.  I thought it would have
been easy but was wrong;  here is what I added to my .vimrc file:

  inoremap <expr> <Tab> pumvisible() ? "\<C-Y>" : "\<Tab>"

Vim still keeps adding tabs rather than closing the completion popup.  Is
it something wrong with that?  Maybe other plugins interfering?  I even
found at least two different resources where something like this is done,
but none of them worked.


Cheers,

Matteo

[1]
http://vim.wikia.com/wiki/Make_Vim_completion_popup_menu_work_just_like_in_an_IDE
[2] https://github.com/Shougo/neocomplete.vim

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to