By default, supertab is inserting a regular tab when the previous character is a space.
I would like to keep this behaviour but with the following exception: if the previous character is a space but the preceding word is import
, autocomplete.
For instance (|
denotes the cursor position)
from numpy import |<tab>
should display completions,for |<tab>
should insert a tab.
I'm aware of g:SuperTabNoCompleteAfter
but I'm not sure how to obtain the desired result.