I really like the supertab plugin. Reaching <C-x><C-p> is a bit too long and mapping it to tab gives me a better workflow. However, sometime I just want to insert a regular tab and for this I need to insert a space first, i.e. foo<Space><Tab>bar.
This pollute my sources with useless spaces before each tab char (this assuming I don't use expandtab).
I am wondering is there is a smarter way to use auto-completion ?
Any ideas?
You can suppress the Supertab trigger and insert a literal tab by pressing <C-v><Tab>
. (On Windows, that frequently is <C-q><Tab>
.)
Supertab also provides a mapping for direct input, by default <C-Tab>
; see :help supertab-mappingtabliteral
. That default key combination probably only works in GVIM, though.