How can I use the Tab key to indent in vim with SuperTab enabled?
Asked Answered
C

2

9

I've just enabled SuperTab in vim, and if I try to indent a blank line, SuperTab is attempting to insert strings. What I'd like, I guess, would be to have SuperTab offer completions only if there is non-whitespace to the left of the cursor.

I don't want to have to use Ctrl-V or Ctrl-Q or anything.

Cardinale answered 14/5, 2013 at 16:59 Comment(4)
Do you happen to use Snipmate?Annul
What you are asking for is a key feature of supertab. That's why I think your problem is caused by other plugins or mappings.Alitaalitha
@Annul - Yes, that was it. Out goes Snipmate!Cardinale
@Cardinale No need to drop it, see my answer (and possibly accept it) :-)Annul
A
11

This could be caused by an old version of snipmate, update to the forked version maintained by Gargas.
It has quite a few dependencies so I'd recommend using Vundle if you're not already using it.

See comments to OP for more information.

Annul answered 14/5, 2013 at 17:35 Comment(0)
C
0

msanders/snipmate.vim conflicts with supertab.

you can use ultisnips instead of Snipmate

https://github.com/SirVer/ultisnips

Chirlin answered 18/3, 2015 at 0:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.