Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Even when I have an empty buffer in vim, supertab tries to do a completion at the begining. How can I configure supertab to only try tab-completion if there's a character?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Supertab triggers insert-mode completion only when there is non-whitespace text before the cursor. Behind whitespace, or at the beginning of a line, a <Tab> character should be inserted. Something's wrong with your setup.

Note that you can always insert a literal <Tab> with <C-v><Tab> (on Windows, you may have to use <C-q>).

share|improve this answer
    
Any ideas what could cause this problem? –  AME May 23 '13 at 14:45
    
A new git checkout solved the problem. –  AME May 23 '13 at 16:07
    
Ah, great you've solved it! So it was likely script corruption?! I couldn't think of any reason, sorry. –  Ingo Karkat May 23 '13 at 16:08
    
I have no clue. I can't remember changing anything in the git module. however pulling did nothing but removing the module and checking out a fresh copy helped. :) –  AME May 25 '13 at 14:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.