When using Ale, I'd like to use the Tab key to cycle through completion suggestions. By default, the arrow keys do it. What are the various configuration options for cycling through the suggestions as well as selecting the correct completion?
Asked
Active
Viewed 2,403 times
7
-
I have the same question - did you end up finding an answer? – vince Oct 02 '18 at 13:14
-
1An answer was just posted that works @vincecampanale! – lovelikelando Oct 02 '18 at 20:52
1 Answers
14
Could do something like this:
inoremap <silent><expr> <Tab>
\ pumvisible() ? "\<C-n>" : "\<TAB>"
Essentially, when you hit tab in insert mode, check whether the popup is visible, and if it is then send Ctrl-n
(to go to the next match), otherwise send a tab.

Marcus Buffett
- 1,289
- 1
- 14
- 32
-
6Thanks. I also added `inoremap
– Dan Keder Nov 11 '18 at 11:36pumvisible() ? "\ " : "\ "` to make Shift-Tab select the previous suggestion.