Am 20.05.2012 16:02, schrieb Guido Van Hoecke:
> Is there an easy way to add<Tab> as a valid key to perform the
> functionality provided by Ctr-Y 'Yes: Accept the currently selected
> match and stop completion.' without interfering with the normal
> functionality provided by the<Tab> key?
Try the following:
:imap <expr> <Tab> pumvisible() ? "<C-Y>" : "<Tab>"
(or use :inoremap, shouldn't be much a difference)
--
Andy
--
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
Sunday, May 20, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment