ervandew / supertab

Perform all your vim insert mode completions with Tab
3.18k stars 214 forks source link

Remap tab when no completion is active #204

Open jeremyong opened 5 years ago

jeremyong commented 5 years ago

I'd like to perform a remapping of <tab> in insert mode when there isn't a completion context active (as opposed to currently what happens by default which is the insertion of a literal tab (or spaces depending on vim config).

How should I go about this? Thanks!

ervandew commented 5 years ago

Currently your only option would be to modify supertab. Here is the line that returns a literal tab: https://github.com/ervandew/supertab/blob/40fe711e088e2ab346738233dd5adbb1be355172/plugin/supertab.vim#L524

jeremyong commented 5 years ago

Ah thanks for the response. Any interested in a supertab fallback option of sorts?