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

最后都变了- 提交于 2019-12-10 03:26:54

问题


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.


回答1:


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.




回答2:


msanders/snipmate.vim conflicts with supertab.

you can use ultisnips instead of Snipmate

https://github.com/SirVer/ultisnips



来源:https://stackoverflow.com/questions/16548806/how-can-i-use-the-tab-key-to-indent-in-vim-with-supertab-enabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!