supertab icon indicating copy to clipboard operation
supertab copied to clipboard

Remap tab when no completion is active

Open jeremyong opened this issue 5 years ago • 2 comments

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!

jeremyong avatar May 02 '19 03:05 jeremyong

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

ervandew avatar May 02 '19 14:05 ervandew

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

jeremyong avatar May 02 '19 18:05 jeremyong