How can I use the Tab key to indent in vim with Su

2019-04-22 04:18发布

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.

2条回答
可以哭但决不认输i
2楼-- · 2019-04-22 04:56

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.

查看更多
祖国的老花朵
3楼-- · 2019-04-22 05:04

msanders/snipmate.vim conflicts with supertab.

you can use ultisnips instead of Snipmate

https://github.com/SirVer/ultisnips

查看更多
登录 后发表回答